#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$)