Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form.Destroy()
Message
 
To
05/05/1998 11:05:15
Tim Hockin
Illinois State U - Residential Computing
Normal, Illinois, United States
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00096885
Message ID:
00097048
Views:
24
>The problem is that I need to do that when the object is Destroyed, independent of the form it is on. The control is designed for multiple use in different settings. I'd like to have it autonomously destroy itself. But it doesn't. the code in it's destroy() method never gets called when the form terminates
>
>>Tim, can you NULL the references in appropriate customControl.object and issue customControl.RemoveObject() from the form method before releasing the form, or I still don't understand what you are trying to do? :)

Oh, I see now, I thought your custom object was outside the form.
Did you trace it starting in Form.Destroy() method? Is it possible that Form.QueryUnload returns .F. by some reasons? I just tested a sample form with custom object and everything went OK, all events were fired.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform