T
Tim Frawley
When I trap an error in a sub or function is there a programatic way
to determine the sub or function name for error reporting?
Private Sub cmdOk_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles
cmdOk.Click
Try
Error occurrs
Catch Ex as exception
WriteToEventLog(FormName & "." & SubOrFunctionName,
ex.tostring)
End Try
End Sub
This would really save me a lot of typing the names in here. Form
Name is easy but the Sub or Function name has me stumped.
Tim
to determine the sub or function name for error reporting?
Private Sub cmdOk_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles
cmdOk.Click
Try
Error occurrs
Catch Ex as exception
WriteToEventLog(FormName & "." & SubOrFunctionName,
ex.tostring)
End Try
End Sub
This would really save me a lot of typing the names in here. Form
Name is easy but the Sub or Function name has me stumped.
Tim