class and rutine source

  • Thread starter Thread starter hansiman
  • Start date Start date
H

hansiman

I have a event handler takes Class:sub/function as a param for easy
id:

LogError(ex, "Class:Sub")

My problem is that I have to hard code Class:Sub on every call.

Is it possible to have the code send the "current" class and current
sub generically. Something like:

LogError(ex this.class.current.sub)?

/M
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top