Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing extra spaces and limiting input to A-Z, 1-0, an
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01159441
Message ID:
01159499
Views:
17
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform