Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to reset the result of AERROR?
Message
De
22/11/1999 12:59:13
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00293860
Message ID:
00293974
Vues:
21
>Is there a possibilty to reset the AERROR result?
>
>Before Shutdown I check AERROR. If there is no last
>error I will ask the user whether he really wants to quit.
>If there is a (fatal) last error there is no need to ask the
>user to stay in the program and the program quits
>immediately (it would be dangerous to stay after an unpredicted error).
>The problem is that there might errors (no real ones) be trapped
>before and these should not change the shutdown behaviour. So
>after such an error I want to reset AERROR so that it returns
>no error the next time it is called.
>

I would suggest using some other mechanism to check whether there has been a fatal error or not. Possibly set a global variable or a property of an application object.
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform