G
Guest
Hello,
I made the common mistake most amateurs do - wrote a lot of sub's and
functions without considering error trapping. Now I am punished for that.
Q1: Can I have one general error handling routine for each module or must
the error handling routines be at sub or function level?
Q2: If not, is there a way to automate writing of error handling routines in
each sub? I need to write the following statements in each sub:
on error goto err_subname
....
exit_subname:
exit sub
err_subname:
.....
goto exit_subname
end sub
I am asking this of course to avoid writing the same thing hundreds of times.
Thanks
kamil
I made the common mistake most amateurs do - wrote a lot of sub's and
functions without considering error trapping. Now I am punished for that.
Q1: Can I have one general error handling routine for each module or must
the error handling routines be at sub or function level?
Q2: If not, is there a way to automate writing of error handling routines in
each sub? I need to write the following statements in each sub:
on error goto err_subname
....
exit_subname:
exit sub
err_subname:
.....
goto exit_subname
end sub
I am asking this of course to avoid writing the same thing hundreds of times.
Thanks
kamil