Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining existence of an object
Message
From
10/08/1999 08:34:03
Paul Robinshaw
Silkworm Technologies Limited
Macclesfield, United Kingdom
 
 
To
09/08/1999 23:52:42
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00251780
Message ID:
00251905
Views:
12
And just to make matters even more complicated...

>
>IF VARTYPE(oMyObject) = "O" && It's Allliiive....
>ELSE && It ain't no object or it's a daid object
>ENDIF
>

I've found that if oMyObject is not instantiated within the current program or form then IF VARTYPE(oMyObject) = "O" does not work. I've had to resort to IF TYPE("oMyObject") = "O" AND !ISNULL("oMyObject") when testing for external objects.

Regards

Paul
Previous
Reply
Map
View

Click here to load this message in the networking platform