VB.Net How to check a string against many other strings
Posted on 2013-01-19
Hi Experts. I have a simple string "abc" that must be matched against a list of about 350 other strings that are split into about 20 groups. Some strings within a group are always the same and will be hardcoded but some are dynamic and must be supplied by the user.
If a match is found then I need to increment a number by one to show that the string matched something in that group.
So "abc" is matched against
And so group three would be incremented by 1
I though I could do "If Then ElseIf" but with the user defined values it got lengthy and complicated. Whats the correct way to do this?? Any help appreciated.