Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing VFP
Message
 
À
25/06/1996 12:50:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00002889
Message ID:
00002895
Vues:
33
>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
Fil
Voir

Click here to load this message in the networking platform