#ErrorMsg$

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

The #ErrorMsg$ system variable returns the WinTask error message for the error that triggered the OnAction Error procedure. Not available in WinTask Lite.

Usage

When a script is replayed with #IgnoreErrors=1, and if the script fails, the error message is not displayed. You can use #ErrorMsg$ system variable to know the error message which explains why the script failed.

Syntax

msgbox(#ErrorMsg$)