Adxpno
adxpno gives access to the stacked scripts called with Call, Fmet, or func.
Syntax
adxpno(EXP_INTEGER)
EXP_INTEGERis an integer expression that returns the level of call.
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:
serveris the server name (empty if the server is the same as the execution server).FOLDERis the folder name where the script is found.TRTis the subfolder where the script is found (usually TRT).SCRIPTis the script name.$adxis a constant that corresponds to the extension of the executable (compiled) script.
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.