Hi!
I'm currently tryin to write a generic "Error Handling code" so I can cut-and-paste it in every _Event, Sub and
Function in the VB project I'm working on. The idea is to log a few information on the context in which an error has occured.
AddError2DB Err.Number,Err.Description,"WhereItHappen",Time
What I need to complete the is the "WhereItHappen" part.
Because I don't want to customize every error handling call
...
AddError2DB Err.Number, Err.Description, "Form_Load", Time
...
AddError2DB Err.Number, Err.Description, "cmdA_Click", Time
Can somebody help me to get the name of the Event, Function or Sub when the programme run into it...
Thank a lot. ;o)
I'm currently tryin to write a generic "Error Handling code" so I can cut-and-paste it in every _Event, Sub and
Function in the VB project I'm working on. The idea is to log a few information on the context in which an error has occured.
AddError2DB Err.Number,Err.Description,"WhereItHappen",Time
What I need to complete the is the "WhereItHappen" part.
Because I don't want to customize every error handling call
...
AddError2DB Err.Number, Err.Description, "Form_Load", Time
...
AddError2DB Err.Number, Err.Description, "cmdA_Click", Time
Can somebody help me to get the name of the Event, Function or Sub when the programme run into it...
Thank a lot. ;o)