Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Destroying an object
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01423505
Message ID:
01423514
Views:
63
This message has been marked as the solution to the initial question of the thread.
>I probably don't understand how to destroy an object as I am having the following problem.
>
>I often create a property of a UI form and then instantiate an object and reference it to the property of the form. Then in UNLOAD method I set the value of this property to .NULL.. And it works.
>
>But when I drop a class/object on a form and then try to do the same in UNLOAD method, I get error that oMyObject is a method, even, or object.
>
>How do I destroy the object that was dropped on a form?

All objects dropped on the form are destroyed automatically in form's Destroy.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform