New Robot Bug? On Error Go To...
User MArk B. (email@example.com) posted:
Did anyone else know about this behavior?
In one sub I've got "On Error GoTo EH". That sub has the label "EH:" in it.
From that sub, I called a function. In that function I didn't have any error
handling code. So, when an error happened in that function guess what
happened? It went to EH: in the sub!
Is this right? I wouldn't thing so. I'd expect it to show the error from
within the function.
Re: New Robot Bug? On Error Go To...
User Tim Gerrells (firstname.lastname@example.org) posted:
Typical VB-like error handling: check current function/sub and, if a) no
handling or b) can't handle it then goto next higher error
object/sub/function, on up until it is a) handled or b) GPFs or c) [fill in
Do take care with error handlers in recursive functions.