A function returning the error code number of the last error which occurred.
X=ERR
Once you have assumed responsibility for error handling using the ON ERROR statement, you can use this function to discover which error occurred.
See the Error Handling sub-section for more information on error handling and correction.
Syntax
<n-var>=ERR