Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exit form
Message
De
25/11/2010 17:39:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
25/11/2010 17:29:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
01490511
Message ID:
01490512
Vues:
63
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform