Check your code for invisible ascii character that might be throwing off the search, select a block of code, right click then Clean invisible ascii characters. This sometimes happens if you’re copy/pasting from another source.
Did not know about the “clean invisible ascii characters”. It didn’t look like it did anything but funny thing, it seems to be working now.
I don’t remember pasting the code here, but gremlins are sneaky little buggers.
Thanks.
OK, so this is interesting. I made a request dialog with a TextArea and a default button. When I hit the button, the string passed is the correct length, but when I hit the Enter key, an additional character is added to the string passed which is why the InStr function was being thrown off.
Who knew?
I guess I have to add a Mask to the TextArea to filter out these characters.