General information
Category:
Coding, syntax & commands
>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only