Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP5: How to check to see if the object exists in the me
Message
From
06/05/1997 00:50:57
 
 
To
05/05/1997 23:56:57
Jim Si
Alberta Research Council
Calgary, Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00030931
Message ID:
00030935
Views:
40
>I want to use AddObject to add a object on my form. How do I know if the object is already added?
>
>Thanks in advance.
>
>Jim

If the name of your object is MyObject, than:

if type("ThisForm.MyObject") = "O" and (ThisForm.MyObject <> NULL)
*-- The object already exists
else
*-- The object doesn't exists
endif

Vlad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform