Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When is .NULL.= .NULL.?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00398289
Message ID:
00398507
Views:
29
>? TYPE('lvar') && "N"If no other type is assigned previously, TYPE() will report "L". VARTYPE() always will report "X".

George,

Type reports L on an unitialized null var because all vars default to L unless they are assigned some other data type.

LOCAL var
?TYPE("var") && reports L

VarType() is fine except for one situation, when you are checking the type of a property of an object. In that case VarType will error out if the object does not exist while Type will report U for undefined.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform