Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Quit Vs. Cancel
Message
De
19/10/2010 09:55:32
 
 
À
18/10/2010 18:18:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01486064
Message ID:
01486115
Vues:
99
>Hi friends.
>
>Excuse me for this question but I have a doubt
>
>I programed error events and when I can't manage it I alert the user the program is going to cancel...
>
>Then
>
>QUIT.
>
>The most times subsequents errors occur and I/we have to use Windows task admin. As I'm developping as it's run time
>
>If I use CANCEL instead of QUIT apparently I get what I want.
>
>If I read VFP help and it says "Always use QUIT to terminate a Visual FoxPro session. If you turn the computer off without issuing QUIT, open files might become damaged and data lost, and temporary work files that would normally be deleted may be left on disk." I might figure CANCEL is not a good solution.

That warning is for interactive VFP sessions. QUIT has no place in an application. Even CANCEL isn't a good idea in most shutdown scenarios. What you normally need to do is CLEAR EVENTS and let your application clean-up code run.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform