How can I get the function handle.

eurob

Member
Joined
Dec 5, 2007
Messages
5
Location
Piqua, OH
Programming Experience
3-5
Is there a way to get the function handle of the function that I am in?
I thought I could use 'this.name' but that does not work.

VB.NET:
Private myFunction() as boolean
   msgbox(myfunction) ---> how can I determine runtime what function I am in
End Function
 
VB.NET:
MsgBox((New StackFrame).GetMethod.Name)
 
Back
Top