Hi
I don't believe that you can set some sort of generic error handler in this way. I've seen it set in the main calling program for that seems to work.
Have a look at the code below. The initial calling program sets the error process for the main sub, and any subsequent subs called by the initial program. As per the first example, make xx a 3 and you will see 2 messages (1) is the result and (2) is the "see this" message. If you then change the 3 to a 0 in sub aaa you only see the error handler approach. If you step through the code in the debugger, you will see that it immediately calls the error handler when the error occurs.
HTH
rylo
Bookmarks