#ErrorCode

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

The #ErrorCode system variable gives the return code of the WinTask function 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 code is not displayed. You can use #ErrorCode system variable to know the error code which explains why the script failed.

Syntax

msgbox(#ErrorCode)