Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to close a form
Message
 
À
03/11/1998 12:44:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00154012
Message ID:
00154200
Vues:
23
As David says, QueryUnload is called by the 'X' by the ControlBox. You should consider putting all of your form validation (asking if user wants to save uncommitted changes, etc.) in the QueryUnload and calling this from your Exit button with
if thisform.queryunload()
   thisform.release()
endif
>I've been closing forms in VFP5/6 by calling the form's .Release() method. In there I call the default (DODEFAULT) then do any other cleanup that may be required. I was wondering if the .Release() is really the most efficient way to go? Does this, indeed, take care of all the tables, datasessions, etc.? Should I call the .QueryUnLoad()? It doesn't seem to make much difference if I do or not...
>
>Thanks
>
>RicU
>RicU@att.net
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform