General information
Category:
Coding, syntax & commands
>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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only