Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
[VFP7](Re)setting/not using the AERROR() array
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
[VFP7](Re)setting/not using the AERROR() array
Miscellaneous
Thread ID:
00781438
Message ID:
00781438
Views:
52
Situation:
An error handler that looks at the number of errors returned by the AERROR() function. (if > 0 continue; else return)
This handler is explicitly called, and is not in the 'ON ERROR'-handler.

Problem:
I want to be 'dirty' and ignoring any errors that might occur (I don't want any error messages), so I use the following code:
cOldErr = ON( 'ERROR' )
ON ERROR *
GO nRecno IN (cAlias)
ON ERROR &cOldErr
After this, the error-function is called, and it fires with the message: 'Record is out of range'.
The AERROR() returns this error.
This message is a result from the GO nRecno ... command.

How can I clear/not use/overwrite ('not use' preferably, because before the specific code an error occurs which I want to see in my message) the error array?
Next
Reply
Map
View

Click here to load this message in the networking platform