Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cancel, Quit or Release
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01215343
Message ID:
01215435
Vues:
16
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform