#ErrorFunction$
System variable - Synchronization, File management, Program flow control, System, Com management.
The #ErrorFunction$ system variable gives the WinTask sub or function name 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 name of the function in error is not displayed. You can use #ErrorFunction$ system variable to know which function triggered the error.
Syntax
msgbox(#ErrorFunction$)