Informational functions used in run-time errors
The functions Err, Erl, Error, and Error$ describe the current error, if there is one. LotusScript® assigns a value to each of these functions when an error occurs.
- Err function
Returns the LotusScript® error number for the current error, or the number you specify with the Err statement. If there is no current error, Err returns FALSE (0). The value of the function Err persists across scripts. Completing execution of a script does not automatically reset this function's value to 0. The value of Err is reset to 0 only by an Err statement or a Resume statement.
- Erl function
Returns the current line number within the procedure where the error handler is defined.
- Error and Error$ functions
Return the error message for the current error, or the message for the error number you specify with the Err statement. If there is no current error, Error and Error$ return the empty string "".