#LastErrorLine
System variable - Synchronization, File management, Program flow control, System, Com management.
The #LastErrorLine system variable gives the line number in the script where the error triggering 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 error line is not displayed. You can use #LastErrorLine system variable to know at which line in the script the error occurred.
Syntax
msgbox(#LastErrorLine)
or
msgbox(#LastErrorLine$)Remarks
The returned script line number takes into account the number of lines of included scripts.
#LastErrorLine$ is similar to #LastErrorLine but returns the script line number as a string.