Results 1 to 3 of 3

Thread: Qs: How to get procedure name?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Location
    Iran
    Posts
    237

    Qs: How to get procedure name?

    Hi,
    How can i get prodecure name?

    Public Sub PrvName()
    MsgBox PRODECURE NAME <-
    End Sub

    Very thanks.
    Y.P.Y

  2. #2
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: Qs: How to get procedure name?

    I believe you cannot. However, there's a free VB Add-Inn (MZ-Tools), which can get it for you with just one click in the IDE

  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: Qs: How to get procedure name?

    It's simple, but not quite that simple. What you do with MZTools is to click its Options button, click Error Handler, for example, and enter something like this:

    Code:
        On Error GoTo ErrorRoutine
    
    	{PROCEDURE_BODY}
    
        Exit {PROCEDURE_TYPE}
    
    ErrorRoutine:
    
        DisplayError "{PROCEDURE_NAME}"
    then in every procedure you click MZTOOLS Add Error Handler button and it replaces {PROCEDURE_NAME} with the name of the procedure. The other variables are also filled in of course.

Posting Permissions

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



Click Here to Expand Forum to Full Width