Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Close Button
Message
 
 
À
30/07/2000 22:52:38
David Turnedge
Turnedge Associates
Sydney, Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00398661
Message ID:
00398662
Vues:
24
>Just a novice question:
>
>On a form that displays a single record with row buffering on, I can successfully determine whether or not the current record has been edited, appended, or whatever.
>
>I can therefore control all aspects of saving/not saving changes to the current record except for when the user closes the form using the window close button (X button).
>
>Where do I put the method to ask the user whether s/he wishes to save changes when s/he has clicked the window close button - I tried the form release method but that didn't work - at the moment the row is automatically updated when the close button is clicked, regardless of whether the user wants it saved or not!
>
>TIA

The QueryUnload event. This fires whenever a user attempts to close a form via the Close button. It is not called if you explicitly call the Release method.

Issuing a NODEFAULT in the QueryUnload will prevent the form from closing.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform