Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing a form with the cross
Message
From
23/12/2007 06:32:03
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01277194
Message ID:
01277205
Views:
19
>Thx Borislav
>
>>>Hi
>>>
>>>What methods run when the form is closed using the cross?
>>
>>QueryUnload()

If for some reason you decide, in QueryUnload(), that the form should NOT be closed, you must use the NODEFAULT command. A common case is when there are pending changes, you ask the user if he wants to save changes (with the options Yes/No/Cancel), and the user presses "Cancel".
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
Reply
Map
View

Click here to load this message in the networking platform