>>Are you saying that the subset of invalid characters is limited too? I thought it's unlimited, since we can have chars in different languages...
>>
>>Anyway, if you want to check, if your string has invalid chars, all you have to do is:
>>
>>If not empty(lcString,lcAllowedChars,"")
>> ** You have invalid chars in the string
>>endif
>
>I agree, but his original post was referring specifically to A-Z,1-0, so I threw-out the option of foreign language characters.
That's just shows how can I be double sided depending whos code we're discussing <g>
If it's our company code, it's OK to assume only English chars, but otherwise I need to consider all possibilities <g>
If it's not broken, fix it until it is.
My Blog