Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opinions for best way to check a string for invalid Char
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00189473
Message ID:
00189796
Views:
10
Mark

This would be even faster:

pcName = chrtran( pcName, "#!$", "" )

>If you want to remove the characters (not just locate them) then I recommend STRTRAN:
>
>pcName = STRTRAN(pcName, "#", "")
>pcName = STRTRAN(pcName, "!", "")
>pcName = STRTRAN(pcName, "$", "")

>..and so on...
>
>This function is nice because it removes every instance very quickly.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform