|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
naive questionin 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 "GS" <gsmsnews.microsoft.co***@msnews.Nomail.com> wrote in message in VB express, me is either the application or the form depending onnews:ODRWYLJ1GHA.5048@TK2MSFTNGP05.phx.gbl... 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 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 > > 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 > > > 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 > > > > > >
Difference in using "With Me" statement in dotnet VB and access VBA
HEX char -- > its comlement Get all forms contained in another project Check for Updates Try to delete a worksheet in Excel WebBrowser Control can't create dll properly Uploading and renameing image Need vb.net 2003/2005 control for ftp client Event Monitoring. |
|||||||||||||||||||||||