Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to reset the result of AERROR?
Message
From
22/11/1999 12:59:13
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00293860
Message ID:
00293974
Views:
23
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform