General information
Category:
Coding, syntax & commands
Problem that I cannot modify ON ERROR routine.
Thanks, Mark
>>I am running some code in the loop. A loop can create a system error. I'd like to reset errors between the loops. So when next loop is running and I am checking for errors (AERRORS()) it won't pick up the error from a prev. loop.
>>
>>Thanks, Mark
>
>You can't. The best you can do is have an lError property and an aErrorInfo array to store the info in. After you check the error, reset the lError property [or memvar] to .F., and redimension the array back to 1 and set its contents to []. When an error occurs, have your ON ERROR proc set the lError prop to .T. and populate the aErrorInfo array with AERROR().
Previous
Next
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