Good Morning,
I develop a code to get numbers as input from word file and compare it with the contents. It works properly
Here is the code with conditions
strFilterWord =
strWord.Replace ("(", string.Empty).Replace(')', ' ').Replace('.', ' ').Replace(';', ' ').
Replace(':', ' ').Trim();if (strFilterWord.Length == 4)
if (Convert.ToInt32(strFilterWord) > 1900
&& Convert.ToInt32(strFilterWord) < 2012)
Note:
1) For the above code i use the condition: Input value is occur in four digits and it is between 1900 to 2012. (Year)
2) In a paragraph the year information is occur only once.
Similarly i need to compare the alphanumeric value [Ex: 2012a].
Regards,
Deepakkumar G.
Reply |
Reply with attachment |
Alert Moderator