Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another Difference Between Type() and VarType()
Message
 
À
18/01/1999 23:36:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00177477
Message ID:
00177559
Vues:
39
Hi Albert,

>i =4.5
>? type(transform(i))
>? vartype(transform(i))
>
>output:
>N
>C

Some weeks (months?) ago I posted a simple rule for both functions:

VARTYPE(x) = TYPE( EVALUATE(x) )

With TYPE() the TRANSFORM() function is evaluated before, but not with VARTYPE(), IOW:

TYPE(TRANSFORM(i)) = TYPE("4.5") = VARTYPE(4.5) = "N"
VARTYPE(TRANSFORM(i)) = VARTYPE("4.5") = "C"

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

Click here to load this message in the networking platform