Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cancel, Quit or Release
Message
From
13/04/2007 08:13:53
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01215343
Message ID:
01215435
Views:
17
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?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Reply
Map
View

Click here to load this message in the networking platform