Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
QueryUnload and Release Thisform
Message
De
16/12/1999 21:22:14
 
 
À
16/12/1999 20:50:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00305043
Message ID:
00305064
Vues:
19
>Darwin,
>
>Make a prg that will fit to your requirements and place it on the destroy event.
>


The destroy event happens too late to prevent a form from closing. The only way to prevent a form from closing when the user clicks the 'x' is by issuing NODEFUALT in the QueryUnload event.

Also, putting form related code in a prg is a bad idea- it takes away the ability to use relative referencing (THIS, THISFORM), and gives you another file that the form depends on to be able to run. It is best to put this kind of code in a custom form method.
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform