Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What actualy happens when you click the X
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00772451
Message ID:
00772476
Vues:
9
>what coding and sequence of events happen when you close a form with the X at top right of the form...?
>TIA

Since you've already gotten the answer, here's more info than you were asking for.

Assume you've got a close command button on a form. If you place code in its click event like this
IF ThisForm.QueryUnload()
  ThisForm.Release
ENDIF
and in the form's QueryUnload event
LOCAL llresult
llresult = < some logical condition >
IF NOT llresult
  NODEFAULT
ENDIF
RETURN llresult
You can easily keep the form from being closed while something like changes are pending.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform