>When a user modify some data in a form and click
>the X (Windows 95) in the right corner to close
>VFP whitout saving, how i can control this and
>prevent VPF to close. I want the user be notify of
>data change and ask him if he want to save this
>data.
>
>Michel
The suggestions from Arnon and Chris will work. You could also make a shutdown procedure to check for unsaved changes. Then you issue a ON SHUTDOWN DO MyShutDown. In that procedure, you can prompt to save changes, close any open forms, and etc. The best way to do all of this is to make sure they cannot close a form without saving changes (as per Arnon's and Chris's suggestions) and then make sure they can't just close the app alltogether with the ON SHUTDOWN.
HTH,
Scot.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only