Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check Alphabetic letters
Message
De
06/10/2004 12:13:30
 
 
À
06/10/2004 11:51:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00949197
Message ID:
00949232
Vues:
13
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform