Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Catching the close event
Message
De
28/06/2002 11:03:26
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
28/06/2002 11:00:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00673298
Message ID:
00673300
Vues:
13
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform