#ErrorScript$ – System Variable






#ErrorScript$ Documentation


Description

The #ErrorScript$ system variable returns the name of the script that triggered the OnAction Error procedure.

Usage

When a script is replayed with #IgnoreErrors=1, and if the script fails, the script name is not displayed. You can use the #ErrorScript$ system variable to know in which script the error occurred.

Syntax

var$=#ErrorScript$

Remarks

If the executed script uses included scripts, #ErrorScript$ returns the name of the main script, not the name of the included script even if the OnAction Error triggered in this included script.

See also

OnAction Error

Example

msgbox(#ErrorScript$)