Home > Language Reference > System Variables > ErrorFunction$

#ErrorFunction$

The #ErrorFunction$ system variable returns the name of the WinTask function that triggered the OnAction Error procedure.

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

var$=#ErrorFunction$

See also

OnAction Error

Example

msgbox(#ErrorFunction$)