Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another Difference Between Type() and VarType()
Message
 
To
18/01/1999 23:36:48
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00177477
Message ID:
00177559
Views:
42
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
Previous
Reply
Map
View

Click here to load this message in the networking platform