Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get the _Event, Function or Sub name for Error Logging.

Status
Not open for further replies.

MikeWare

Programmer
Sep 25, 2002
5
CA
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)

 
This appears to be a direct re-post of thread222-388446

You will get better results if you only post in one forum at a time.

Check out the FAQ referred below Let me know if this helps
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top