Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best Place to Capture user closing form
Message
From
01/12/2000 10:50:21
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00445845
Message ID:
00448075
Views:
11
>Why the Destroy? Why wouldn't you check this in the QueryUnload? The property is set prior to this event and if it is from the Control Menu or Close Box, you can stop it with a NODEFAULT.

You can put it there too, I should have mentioned that. Its nice to keep all cleanup code in one spot, since QueryUnload doesn't automatically fire when you release the form, so I put it in Destroy and if I need custom code for a certain releasetype, I release it there.

But, yeah, if you need to prevent closing the form, you gotta do it earlier.
Previous
Reply
Map
View

Click here to load this message in the networking platform