Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exit form
Message
From
25/11/2010 17:39:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
25/11/2010 17:29:58
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
01490511
Message ID:
01490512
Views:
62
>how can I exit from the form by coding?
>
>I use:
>
>thisform.unload
>thisform.released
>
>but the form still stays.
>
>regards,
>
>Jerry
ThisForm.Release()
Unload() is an event that is called automatically when Visual FoxPro already decided to close the form - that is, when the form is closing. It should not be used to close the form; rather, there you might put any cleanup commands that you want to execute when the form closes.

Another relevant event is QueryUnload(). It allows you to intercept an attempt to close a form, and keep it open, depending on some condition (for example, when there are unsaved changes, and when asked to save, the user selects "Cancel"; or the user wants to save, but there was an error saving).
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