By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,963 Members | 1,798 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,963 IT Pros & Developers. It's quick & easy.

name of executing procedure

P: n/a
guy
How can I find the name of a sub/function that is currently executing
this is for an error logger that takes the name of the class and name of the procedure as parameter

e.g.LogError(Me.GetType.ToString,"ProcedureName"

thx guy
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
* =?Utf-8?B?Z3V5?= <an*******@discussions.microsoft.com> scripsit:
How can I find the name of a sub/function that is currently executing?
this is for an error logger that takes the name of the class and name of the procedure as parameters


\\\
MsgBox(System.Reflection.MethodBase.GetCurrentMeth od().Name)
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2

P: n/a
guy
Thanks Herfried!

guy
Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.