Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Testing for numeric char in a string
Message
 
To
16/11/2001 15:03:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00582918
Message ID:
00582981
Views:
33
Thanks for the solution. Not having used chrtran() b4, I really had to think about this function and what was happening!



>Hi Timothy.
>
>>> What's the best way to test for the existance of a numeric char in a string? If I had dumbvar='Johnson x4588', I would want to know that there are numbers embedded. -TB <<
>
>IF CHRTRAN( dumbVar, '0123456789', '' ) == dumbVar
> *** There are no numeric characters in the string
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Previous
Reply
Map
View

Click here to load this message in the networking platform