06-21-2012 11:26 AM
I want to compare one string to a list of multiple strings. If the string I want to compare matches any string within the predetermined list, I want the program to enter a loop or case structure and perform the action within the loop. I'm thinking that I need to have an array with all the strings and use a comparator to check if the string I've entered/typed is located within the list of preset strings. I don't know if that makes any sense. I also don't want to read from a text file. Thank you in advance
.
06-21-2012 11:38 AM
Make an array of predermined string (similar to what you stated) and then check for offset past match greater than 0. If string si not found offset past match will be -1.Ofcourse there are other ways to achieve this. You can use the True value when the loop stops and enter the case or loop as desired. Hope this helps!
06-21-2012 11:39 AM - edited 06-21-2012 11:44 AM
Sounds like you should be using the Match First String function.
p.s. That AND with a constant wired to your case statement is silly.
06-21-2012 11:46 AM
Thanks, I'll give it a try.