Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Catching the close event
Message
 
To
28/06/2002 11:03:26
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00673298
Message ID:
00673479
Views:
14
>>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?
>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.

In addition to that, I usually have that method return .F. as well. That lets me write Close button code like:
IF ThisForm.QueryUnload()
   ThisForm.Release
ENDif
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Reply
Map
View

Click here to load this message in the networking platform