Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing the form.
Message
 
To
16/05/1997 13:56:45
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00032608
Message ID:
00032611
Views:
40
>When the user clicks to close the active form, I would like to prompt to save changes if any have been made to the current record. My close button is already aware of changes, and deals with the situation accordingly, but can I prevent the form from closing after the user clicks the 'x', if he/she selects cancel from the resulting messagebox?
>Restated: once the user clicks to close the form, can I negate that action?

this calls (i think) the form destroy event. put the code in there to check and cancel form closing if necessary.
Previous
Reply
Map
View

Click here to load this message in the networking platform