Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opinions for best way to check a string for invalid Char
Message
From
24/02/1999 07:31:35
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00189473
Message ID:
00190876
Views:
11
>I need to check names and addresses for invalid characters. What do you guys think is the best command/function to use for this. Thanks for your help.
>Marcus.

There is a SYS()-function for character translation. You can convert any unwanted characters to nothing, or to a special character and then check for this character or remove it with STRTRANC.

Or you could convert any good characters to nothing or a special character and then check if there are any unwanted characters left.

Also, you can use the inputmask-property of a textbox to avoid that unwanted characters are typed in the field.

Marc
Previous
Reply
Map
View

Click here to load this message in the networking platform