Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining existence of an object
Message
From
09/08/1999 19:12:16
 
 
To
09/08/1999 19:10:10
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00251780
Message ID:
00251818
Views:
11
Yes, but the nature of the question was how to tell if an object has been instanced yet. To check it later when it may have been released you use a different way, as you have pointed out.


>I am sure you know John, but hust to clarify-
>
>the test below will determine if the variable named oMyObject is of the object type, but does not test to see if it actually references a living object. To do that, you either need to check the type of one of the object's properties (usually "name"), or, after testing the type, checking for ISNULL(oMyObject)
>
>>Hi Jim,
>>
>>IF VARTYPE(oMyObject) = "O" && It's an object
>>IF VARTYPE(oMyObject) = "U" && It ain't nothing yet
>>
>>>I am using the addobject method to add an object to my form from a custom container class. Once it is created, how can test to see if it already exists?
>>>
>>>Thanks
>>>Jim Oswald
>>>joswald@innova.net
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform