473,507 Members | 2,388 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

naive question

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
Sep 10 '06 #1
4 999
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" <gs**********************@msnews.Nomail.comwrote in message
news:OD**************@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
Sep 10 '06 #2
GS
Excellent. thank you very much
"Siva M" <sh******@online.excite.comwrote in message
news:Ol**************@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" <gs**********************@msnews.Nomail.comwrote in message
news:OD**************@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


Sep 11 '06 #3
guy
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
Sep 11 '06 #4
GS
thanks but my visual studio vb express 2005 doe snot recognized that. I
wish it does.
"guy" <gu*@discussions.microsoft.comwrote in message
news:A3**********************************@microsof t.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


Sep 11 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1145
by: Gabriel B. | last post by:
Is it just me that can't find a full reference in the docs? I wanted a list of all the methods of dict for example... where can i find it? Thanks, and sorry if this question is just dumb, i...
5
1452
by: Waqas | last post by:
HI guys, sorry for being naive, but i have wasted alot of time searching for a undergrad. project but cannot come up with anything. can someone generously suggect me something so that i can move...
9
1561
by: JohnSouth104 | last post by:
Hi I've an asp.net, c#, sql server website and the volumes are starting to rise quickly. I've been asked to look at improving the memory usage of the application. I've not looked at this before...
7
1504
by: sillyhat | last post by:
Hello, Can someone please help. I have come across code similar to this which I prepared as an example:- /*-------------8<------------------*/ #define ASIZE 10 int main() {
7
1407
by: Rory Campbell-Lange | last post by:
I have a number of web applications which have a large amount of their logic written in plpgsql. For each particular application I have a separate instance of a database. If I need to update...
2
1438
by: Rob Clark | last post by:
Hello all, I have a design problem for which my current C++ solution feels more like a hack. :-( I'd like to change that :-) The real problem can be destilled to something like this: One...
3
1653
by: johan2sson | last post by:
The documentation for PyThreadState_SetAsyncExc says "To prevent naive misuse, you must write your own C extension to call this". Anyone care to list a few examples of such naive misuse? Johan
3
4878
by: pragy | last post by:
Hey, can any one help me for writing a program of naive gauss elimintaion technique? It's a technique to solve system of simultaneous linear equations using matrix. thanks
17
1692
by: Christopher Benson-Manica | last post by:
Some recent posts got me thinking about how one might have dealt with simplistic malloc() implementations which might return NULL for a 64K request but might accept two 32K requests or four 16K...
1
2477
by: mjm2114 | last post by:
Hi there, I have a question on a naive implementation of a parallel MT that I've done using the fortran version of MT19937ar.f posted in Prof. Matsumoto's website....
0
7111
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7319
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7031
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7485
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1542
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
760
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.