Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Testing for numeric char in a string
Message
De
16/11/2001 16:20:49
 
 
À
16/11/2001 15:03:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00582918
Message ID:
00582995
Vues:
27
>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
>
Simple, but fast. And no messy loops!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform