f$CallStack (f$AufrufET)
f$CallStack (f$AufrufET)
Calculate the name of the current or one of the calling decision tables ("call stack"). The call level is entered as a parameter.
This function can be used, for example, when producing error messages to display in the window header the decision table that found the error. If the compound or DT is copied or renamed later, the information is always up to date through f$CallStack.
Syntax: | DTName = f$CallStack( Level ) | ||
| Argument | Type | Meaning |
| Level | Integer | Call level relative to the current DT. (1 means the current DT in this). A positive value returns the complete DT name as the function result, while a negative value returns only the DT name without group and compound. |
Result: | String | Name of the calling DT | |
Examples: | DTName = f$CallStack(2) → DTName = 'stl:text:start' DTName = f$CallStack(-2) → DTName = 'start' | ||