Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Testing a Character field for Numeric Data'
Message
 
 
À
28/07/2009 14:16:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01415119
Message ID:
01415132
Vues:
70
>Consider:
>
>
>x = '0.8'
>? TYPE(x)   &&returns "N"
>? VARTYPE(x)   &&returns "C"
>
The Help file is not wrong. Using TYPE in the first context is akin the evaluating of the expression, so it's looking for the type of the variable's content, not for the type of the variable.

TYPE('X') would return C here correctly too.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform