Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check Alphabetic letters
Message
De
01/11/2004 06:50:44
 
 
À
06/10/2004 10:36:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00949197
Message ID:
00956486
Vues:
12
How to check for alphabetic letters in myfield or which command in VFP to use to check it ?

You have a couple of options:
lcAlpha = [ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]
*** This removes all the non-alpha characters from the test string
lcResultString = CHRTRAN( lcTestString, CHRTRAN( lcTestString, lcAlpha, [] ), [] )
or you can use FoxTools:
lcAlpha = [ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]
SET LIBRARY TO FoxTools ADDITIVE
lcResultString = StrFilter( lcTestString, lcAlpha )
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform