Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if an object exists
Message
 
To
10/05/1998 06:21:21
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00098172
Message ID:
00098385
Views:
36
>After some chat with you, now I also agree that TYPE([oControl.Name]) = "C" is enough. As I learned :
>- Scatter name oName wouldn't be treaded like a real object.
>- And with that exception Name property cannot be prevented to be seen.
>Cetin

I'm mostly curious, and totaly new to the Universal Thread, but wouldn't it be better to test TYPE didn't return an "O", like the following?

IF TYPE([oControl.Name]) != "O"
*the objet does not exist
*create it if you need it
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform