Hi Adrian,
I never use CANCEL or QUIT in my applications, I just let them exit gracefully.
That way if I'm in the development environment I end up back on the command window and if the application is running in the runtime environment it closes down.
I just have a main program that does this:
set up my environment
do my menu and/or main form
READ EVENTS
clean up environment and set it back to what it was before
In order to close my application I just do a CLEAR EVENTS.
Of course this is a simplified version of what happens, but that's the essence of it.
>For my EXIT buttons, I always write some code to close conections and other stuff like this, and finish with Cancel. Somebody told me that Quit is better and I know that some others uses Thisform.Release.
>
>I prefer Cancel because when I'm testing in VFP, Quit exit VFP and Thisform.Release can cause that form freeze on error.
>
>It seems that 3 are good ways to exit a program. Is it any important diference?