Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows close button
Message
 
 
To
02/12/2005 11:23:22
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01074279
Message ID:
01074288
Views:
20
This message has been marked as the solution to the initial question of the thread.
>It is my understanding that if I let my forms have a close button, when the user clicks on the close button, the form will close and there is nothing my code can do to stop the close. I can get control in QueryUnload (and save the data in the form if it passes all the validations or throw it away if it fails the validations). In Word if I click on the close button in the upper right, I am given the option to stop the close (if there is unchanged stuff in the document). My VFP apps should behave the same way. What do I do?

Conditionaly return NODEFAULT in QueryUnload to prevent form from closing.

<snip>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform