>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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement