Harbour hvm Functions

Harbour Virtual Machine Functions

AEval Evaluates the subscript element of an array
CLIPINIT Initialize various Harbour sub-systems
dbEval Performs a code block operation on the current Database
Do Calls a procedure or a function
Eval Evaluate a code block
HB_PValue Retrieves the value of an argument
HB_ForNext Inline FOR…NEXT loop
PCount Retrieves the number of arguments passed to a function
ProcFile This function allways returns an empty string
ProcLine Gets the line number of the current function on the stack
ProcName Gets the name of the current function on the stack


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()

ProcLine()

PROCLINE()

Gets the line number of the current function on the stack.

Syntax

      PROCLINE( <nLevel> ) --> <nLine>

Arguments

<nLevel> is the function level required.

Returns

<nLine> The line number of the function that it is being executed.

Description

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

Examples

      See Test

Tests

      PROCEDURE Main()
         ? ProcLine( 0 )
         ? ProcName( 2 )
         RETURN

Compliance

Clipper

Files

Library is vm

Seealso

PROCNAME(), PROCFILE()

ProcFile()

PROCFILE()

This function allways returns an empty string.

Syntax

      PROCFILE( <xExp> ) --> <cEmptyString>

Arguments

<xExp> is any valid type.

Returns

<cEmptyString> Return an empty string

Description

This function is added to the RTL for full compatibility. It always returns an empty string.

Examples

      ? ProcFile()

Tests

      PROCEDURE Main()
         ? ProcFile()
         ? ProcFile( NIL )
         ? ProcFile( 2 )
         RETURN

Compliance

Clipper

Files

Library is vm

Seealso

PROCNAME(), PROCLINE()