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
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00030931
Message ID:
00030936
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 type('thisform.MyOBject') = "O"
> ** Great, it's here
>else
> ** Better load it
>endif
>
>Barbara

You must also check if MyObject is not NULL. Type() function will return "O" if the object was created and released.

Vlad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform