Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Coding the X on the window
Message
De
04/03/2002 17:20:42
 
 
À
04/03/2002 17:16:23
Scott Starkey
Tindall Record Storage
Fort Worth, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00628109
Message ID:
00628111
Vues:
17
This message has been marked as the solution to the initial question of the thread.
The QueryUnload() event is probably what you want. I usually put code such as:

IF !THISFORM.mClose() && Call my own close method
NODEFAULT
ENDIF

in that event. That way, if some code of my own creation returns false (in my forms it's the mClose method. It takes care of things like checking for pending unsaved changes, cleaning up, etc.) then the form will not close (because of the nodefault). Hope this helps.


>Is there an event when a user clicks the X button on a form? Does the destroy event happen everytime a form releases?
>
>Thanks
Brian McCord
President
Sagacity Systems
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform