>I am using it in a SCAN FOR scope.
It's a bit mysterious. Anyway, your code could be simpler if instead of collecting search string you would collect search entries in a cursor and then you could
Locate For At(mycursor.myfield,mystring)>0
Edward Pikman
Independent Consultant