Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a command to know if a value is numeric or char
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00208000
Message ID:
00208016
Vues:
26
>To check if a string is a valid numeric, ALLTRIM() the variable and then test each remaining character to see if it's in the valid character set ('0123456789.' for a decimal number).

...using EMPTY(CHRTRAN(string,"1234567890. -",""))

Christof
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform