Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Canceling a form with the close button
Message
De
01/08/1999 15:42:36
 
 
À
01/08/1999 15:40:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00248686
Message ID:
00248697
Vues:
18
>Hi Fred
>
>>>Can I assign a method to be executed when the user closes a form by clicking Window´s close control box on the upper right hand corner, or can I assign this button the same click method of the form´s CANCEL button ? Do I explain myself ?
>>If you put code in the QueryUnload method, you can stop the form form exiting if need be by executing a NODEFAULT.
>
>This is true for the X button but for a command button you will always have to remeber:
>
>
If thisform.quesryunload()
>  thisform.release()
>endif
True. But can you stop a form from Destroy ing itself? I know you can stop it, but isn't it too late to make use of any other controls in the form, ie, they're already destroyed?
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform