Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How Do I
Message
 
To
26/01/1999 10:26:35
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00180248
Message ID:
00180256
Views:
23
>How do I check for the existence of an object?
>
>Please help
>
Hi Jim,

Both John and BOb are right, but I'd add:
llisobject = (TYPE("objvariable") = "O" AND NOT ISNULL(objvariable))
The TYPE() function will still return "O" for an object that's been set to .NULL.. Therefore, it's a good idea to check this as well.

hth,
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform