ProcName()

PROCNAME()

Gets the name of the current function on the stack

Syntax

      PROCNAME( <nLevel> ) --> <cProcName>

Arguments

<nLevel> is the function level required.

Returns

<cProcName> The name of the function that it is being executed.

Description

This function looks at the top of the stack and gets the current executed function if no arguments are passed. Otherwise it returns the name of the function or procedure at <nLevel>.

Examples

      See Test

Tests

      This test will show the functions and procedures in stack.
      before executing it.
      PROCEDURE Main()
         LOCAL n := 1
         DO WHILE ! Empty( ProcName( n ) )
            ? ProcName( n++ )
         ENDDO
         RETURN

Compliance

Clipper

Files

Library is vm

Seealso

PROCLINE(), PROCFILE()

Advertisements

3 responses to “ProcName()

  1. Pingback: Harbour All Functions – P | Viva Clipper !

  2. Pingback: Harbour hvm Functions | Viva Clipper !

  3. Pingback: Harbour RG Summary | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s