-
I am using VB5. Just wondering if for unexpected errors there is a way to programmatically get the current procedure name for the error handling routine to log out.
i.e.
Code:
On Error Goto ErrorHandler
Err.Raise 1234
Exit Sub
ErrorHandler:
Msgbox "Error in Procedure: " & ?ProcedureName? & ". " & Err.Description
-
Vb-World to the rescue...i believe this is what you need:
http://www.vbsquare.com/tips/tip466.html
Hope that helps,
D!m
-
Its not the logging to file thats the problem. More finding out which procedure is currently executing. Just hate changing everytime. Be nice is there was some sort of function that would return the name of the current procedure.
-
Take a look at http://www.vbsquare.com/tips/tip416.html
then...i think this ""Source: " & sSource" section sounds like it would show the source for the error.
gl,
D!m