Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Catching the close event
Message
From
28/06/2002 11:03:26
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
28/06/2002 11:00:20
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00673298
Message ID:
00673300
Views:
14
>Hi there,
>
>i have a question about closing a form using the cross-in the upperright corner of the form.
>
>Is it possible to catch the event this button raises? (and thus make it possible to return to the form if the user wants to)
>
>regards,
>
>Erwin

Put all your closing code in Form.QueryUnload(). Issue a NODEFAULT, for instance, if there are pending changes and the user doesn't want to save, or tries to save, but TableUpdate() returns .F.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform