naive question

  • Thread starter Thread starter GS
  • Start date Start date
G

GS

in VB express, me is either the application or the form depending on
context. Is the an object pronoun that points the current sub, function or
event? I want to use that pronoun to display sub name,.... in debug
messages
 
There is no Me-like thing available for this but the following will get you
what you are looking for:

System.Reflection.MethodInfo.GetCurrentMethod ().Name


in VB express, me is either the application or the form depending on
context. Is the an object pronoun that points the current sub, function or
event? I want to use that pronoun to display sub name,.... in debug
messages
 
thanks but my visual studio vb express 2005 doe snot recognized that. I
wish it does.
 

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