Adxpno

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

Syntax

 adxpno(EXP_INTEGER)

Examples

 # Let's find the current scriptCURRENT_SCRIPT=adxpno(0)# Another function can also be usedCURRENT_SCRIPT=trtcou# Let's find the number of call stackedInteger LEVELWhile adxpno(LEVEL) <> ""LEVEL += 1Wend

Description

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

server@FOLDER.TRT/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.