>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