Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check Alphabetic letters
Message
From
06/10/2004 12:13:30
 
 
To
06/10/2004 11:51:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00949197
Message ID:
00949232
Views:
12
EMPTY (LEN (CHRTRAN (MyField, "0123456789", "")))
and
EMPTY (CHRTRAN (MyField, "0123456789", ""))
will give the same results BTW.

Note that your code will work only if the field contains only numerics, it will not detect numeric digits inside a field like I thought you asked in your first post.
EMPTY (CHRTRAN ("123", "0123456789", "")) = .T.   && Not good
EMPTY (CHRTRAN ("ABC", "0123456789", "")) = .F.   && Good
EMPTY (CHRTRAN ("ABC123DEF", "0123456789", "")) = .F.   && Good?
>I used codes like :
>
>IF !empty(LEN (CHRTRAN (MyField, "0123456789", "")))
> *-- Good
>ELSE
> *-- Not good
>ENDIF
>
>and works fine too.
Previous
Reply
Map
View

Click here to load this message in the networking platform