Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining existence of an object
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00251780
Message ID:
00251911
Views:
11
>It was my understanding that VARTYPE would only pass an 'O' if the variable was a living object. If VARTYPE were to classify a dead object it would return an 'X' because the variable was NULL.
>
>Glenn
Glenn,

I stnad corrected. If you omit the second argument for VarType() then it will return X for a value of NULL. Although I cuation about using VarType() as it is desinged to be faster and will fail with an error on certain conditions, like checking the type of a property of a non-existant object.
Previous
Reply
Map
View

Click here to load this message in the networking platform