Information générale
Catégorie:
Codage, syntaxe et commandes
>Thanks Ed,
>
>This may sound dumb, but what is the best way to close, end or release thisform.
>I sounds like I close one form, then give a new "Do Form" command. Am I correct ?
>And can you give me a sample of a close to a form, and the opening of another form ?
>
>John
John, if you use the command
DO FORM myformname NAME myfornname linked
VFP creates a variable in memory named "myformname" at the same time you start the form.
When the user leaves the form you simply need to put the command
RELEASE myformname
and the form is released. The RELEASE statement can be in an exit button, or in the destroy method
or even in the lostfocus method, though that will close the form if the user alt+tabs to another application.
hope this helps.
David
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement