Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining existence of an object
Message
 
To
09/08/1999 18:23:48
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00251780
Message ID:
00251909
Views:
18
>IF VARTYPE(oMyObject) = "O" && It's an object

John,

This will fail on certain circumstances, for example;
oObj = CReateObject("Form")
? TYPE("oObj") && O
?TYPE("oObj.Name") && C
oObj = NULL
?TYPE("oObj") && O
?TYPE("oObj.Name") && U
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform