Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Close Button
Message
 
 
To
30/07/2000 22:52:38
David Turnedge
Turnedge Associates
Sydney, Australia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00398661
Message ID:
00398662
Views:
32
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform