Home All Groups Group Topic Archive Search About
Author
10 Sep 2006 4:37 AM
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

Author
10 Sep 2006 11:34 AM
Siva M
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

"GS" <gsmsnews.microsoft.co***@msnews.Nomail.com> wrote in message
news:ODRWYLJ1GHA.5048@TK2MSFTNGP05.phx.gbl...

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
Author
11 Sep 2006 5:22 AM
GS
Excellent.  thank you very much
Show quoteHide quote
"Siva M" <shiva***@online.excite.com> wrote in message
news:OlDhk0M1GHA.4448@TK2MSFTNGP04.phx.gbl...
> 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
>
> "GS" <gsmsnews.microsoft.co***@msnews.Nomail.com> wrote in message
> news:ODRWYLJ1GHA.5048@TK2MSFTNGP05.phx.gbl...
>
> 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
>
>
Author
11 Sep 2006 2:20 PM
guy
have a look at GetCurrentMethod

hth

guy

Show quoteHide quote
"GS" wrote:

>
> 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
>
>
>
Author
11 Sep 2006 4:13 PM
GS
thanks but my visual studio vb express 2005  doe snot recognized that.  I
wish it does.
Show quoteHide quote
"guy" <g**@discussions.microsoft.com> wrote in message
news:A36729A1-1341-4EAD-87DC-FFA60B94B7C6@microsoft.com...
> have a look at GetCurrentMethod
>
> hth
>
> guy
>
> "GS" wrote:
>
> >
> > 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
> >
> >
> >