Hi Jjardine:
I need to trap completely unexpected errors (such as bad indexes) so the try
/ catch / end try block won't help me with this function. I've used it
where appropriate - such as database access.
Since my startup and error trapping occurs in a class library the ERL
function always returns a line number of zero. I'm hoping to get the form
that caused the error along with the line number for quick debugging should
there be a crash.
If you have any ideas they would be greatly appreciated!
Thanks,
Fred
"jjardine" <jj******@bellsouth.net> wrote in message
news:ud**************@tk2msftngp13.phx.gbl...
"Fred Nelson" <fr**@smartybird.com> wrote in message
news:Om**************@TK2MSFTNGP11.phx.gbl... Hi:
I'm writing an error handling routine for my VB.NET program. I have a
routine that is called when an error occurs using "on error goto' as in
a class library which then loads the first form in the system.
When I encounter an error I'm using err.number for the error number,
err.description for the description of what went wrong.
What I really need to complete the process is the name of the form on
which
the error occurred and the line number.
I would really appreciate it if someone knows how to obtain this
information - or if there are additional steps that I need to take in
each form to collect it.
Thanks,
Fred
Any thought of using Try Catch blocks instead of using On Error GoTo?
In regards to the err line information there was a function ERL
that would report line numbers Here is some info on it..
http://www.awprofessional.com/articl...le.asp?p=25180 Good luck