#ErrorScript$

System variable - Synchronization, File management, Program flow control, System, Com management.

The #ErrorScript$ system variable gives name of the script where the error trigerring the OnAction Error procedure occurred. Not available in WinTask Lite.

Usage

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

Syntax

msgbox(#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.