VB Add-in: Insert Procedure Names-VBForums
Results 1 to 7 of 7

Thread: VB Add-in: Insert Procedure Names

  1. #1

    Thread Starter
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    32,872

    VB Add-in: Insert Procedure Names

    Title: Insert Procedure Names

    Description: When trying to find the cause of a problem it's often valuable to know what procedures were executed prior to the error. The Call Stack is sometimes helpful in tracing down the problem but it is often inadequate. Adding Debug.Print <procedure name> statements in procedures is often a better way but adding them can be very tedious. This add-in automatically adds MyNameIs <procedure name> statements to every procedure in all selected modules. The "MyNameIs" string can then be easily mass-changed to Debug.Print or anything else you want it to be.

    Feature list: Automatic insertion of procedure names.

    Screen-shots: This shows the icon that is added to the toolbar when the add-in is in use.
    Name:  Toolbar.jpg
Views: 4024
Size:  9.8 KB

    And this shows the screen from which the modules to be modified are selected. In this case all the procedures in modEligibility and frmProgress will have the MyNameIs statements added to every procedure.
    Note: This image is out of date. See post #2.
    Name:  SelectModules.jpg
Views: 4037
Size:  11.2 KB

    Author name: MartinLiss

    System Requirements: Nothing special

    License info: N/A. Use it as you see fit.

  2. #2

    Thread Starter
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    32,872

    Re: VB Add-in: Insert Procedure Names

    Attached is version 2.0 of this add-in. It was almost completely rewritten to use a treeview rather than a listbox. The treeview approach allows for the selection of individual procedures within a component. The picture shows what the new selection screen looks like. In addition to being able to select specific procedures within a component, other new features include the ability to remove the added lines.
    Name:  Image1.jpg
Views: 4725
Size:  11.9 KB

  3. #3

  4. #4
    Lively Member
    Join Date
    Aug 2007
    Posts
    84

    Re: VB Add-in: Insert Procedure Names

    Thanks,

    I will have a look at it.

    Daz...

  5. #5
    Member
    Join Date
    Oct 2009
    Posts
    45

    Re: VB Add-in: Insert Procedure Names

    sorry but
    how do i add an addin?

  6. #6

    Thread Starter
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    32,872

    Re: VB Add-in: Insert Procedure Names

    Quote Originally Posted by Firerunner View Post
    sorry but
    how do i add an addin?
    You open the InsertProcName.vbp file just like any other project and then compile it by selecting the File|Make InsertProcName.dll menu item. Once you do that, open any other project and in the Add-Ins|add-In Manager dialog you will find an Insert Procedure Names item. Select it and make sure that the first two item under Load Behavior are checked and then click OK. Once you do that a new menu item will appear in the IDE (see the first picture in post #1).

  7. #7
    Member
    Join Date
    Aug 2006
    Posts
    53

    Re: VB Add-in: Insert Procedure Names

    thanks bro..
    This is very helpful

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.