Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to reset AERROR() ?
Message
From
05/12/2002 03:32:58
 
 
To
04/12/2002 21:54:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00729740
Message ID:
00729783
Views:
11
This message has been marked as the solution to the initial question of the thread.
>>Somewhere in my application I want to completely ignore the most recent >>result returned by AERROR() in order to start checking for new errors >>only, but when I call this function after succesfull commands, it will >>always consider the last error and will return a value > 0 .

>>Is there any way to 'reset' this function or something like that ?

The only thing you could do is use ON ERROR to call a routine that sets a appplication wide flag eg.

ON ERROR DO LogError

FUNCTION LogError
oApp.lDidErrorOccur=.T.


Then you just test this value to see if you should call AERROR(). Before you start a particular routine you set lDidErrorOccur to .F.


Gary.
Previous
Reply
Map
View

Click here to load this message in the networking platform