Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check digit
Message
 
 
À
23/07/2012 00:15:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
01548974
Message ID:
01548975
Vues:
83
J'aime (1)
lcDigits = "0123456789"
? LEN(CHRTRAN(lcValue, lcDigits, "")) = 0
>I use ISDIGIT(abc) to check if the variable is numeric
>
>
>abc='12345'
>?isdigit(abc)
>
>
>but it doen't work well, because ISDIGIT only check for the first character only
>
>
>abc='1A345'
>?isdigit(abc)
>
>
>will also .T.
>
>is there anyway to make sure the whole characters is numeric?
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform