Adxpno

adxpno gives access to the stacked scripts called with Call, Fmet, or func.

Syntax

   adxpno(EXP_INTEGER)

Examples

   # Let's find the current script
   CURRENT_SCRIPT=adxpno(0)

   # Another function can also be used
   CURRENT_SCRIPT=trtcou

   # Let's find the number of call stacked
    Integer LEVEL
    While adxpno(LEVEL) <> ""
           LEVEL += 1
    Wend

Description

The adxpno(EXP_INTEGER) function returns the name of the current script called at a given level in the following format:

[email protected]/SCRIPT$adx

With the following values:

The type of result is Char.

EXP_INTEGER=0 corresponds to the current level, EXP_INTEGER= 1 corresponds to the calling level, and so forth. When EXP_INTEGER becomes greater than the number of stacked scripts, adxpno(EXP_LEVEL) returns the empty string "".

Associated errors

No associated error.

See also

trtcou, nomap, adxmother.