Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looking up non alphabetic characters
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00842325
Message ID:
00842340
Views:
30
>Is the a command or routine I can use to look at a string to determine if they have any characters that are not A-Z or comma? I am looking for string that may contain things such as "/", "&", etc....
>
lcStr = "Is the a command or routine I can use"
lcLetters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ,"
IF LEN(CHRTRAN(lcStr, lcLetters, "")) = LEN(lcStr)
  *There're no illigal characters in the string
...
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform