Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / April 2006

Tip: Looking for answers? Try searching our database.

obtain the name of the current subroutine

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Terry - 21 Apr 2006 05:58 GMT
Hi,

I am trying to write a macro that can write a line such as:
LogPrint("Subroutine <SubName> in Module <ModName>"

and I am stuck getting the current subroutine name <SubName>.
The module name is OK - it is
Dim instance As CodeElement2

MsgBox(item.Name )

Any help is much appreciated.

cheers

Terry
Carlos J. Quintero [VB MVP] - 21 Apr 2006 09:01 GMT
Hi Terry,

See my article:

     HOWTO: Get the code element at the cursor from a Visual Studio .NET
macro or add-in

http://www.mztools.com/articles/2006/MZ009.htm

Signature

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com

> Hi,
>
[quoted text clipped - 12 lines]
>
> Terry
Terry - 22 Apr 2006 07:10 GMT
Thanks Carlos,

I'll check it out.
The idea for this actually came from MZ-tools for VB6 (a great add-in!)

Actually, the time I have already spent on this would I have been better
just to buy the NET version of MZ-tools (which I shall) - dumb to waste any
more of my time when you've aleady done it!

cheers
Terry

> Hi Terry,
>
[quoted text clipped - 21 lines]
>>
>> Terry
Carlos J. Quintero [VB MVP] - 24 Apr 2006 10:35 GMT
Hi Terry,

Yes, the .NET versions of MZ-Tools has that and other new features and even
a MZ-Tools SDK to extend it...

Let me know if you need further assistance.

Signature

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com

> Thanks Carlos,
>
[quoted text clipped - 7 lines]
> cheers
> Terry

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.