ERL system variable   

Purpose

Return the last line number encountered before the most recent error.

Syntax

nline = ERL

Remarks

Return the last (most recent) line number that was encountered before the most recent run-time error, within the current Sub/Function.  With ERL, line numbers are of the traditional-basic line numbering variety, not the physical source code line.

See also

ERR, ERRAPI, ERRCLEAR, ERROR, ERROR$, Error  Overview, Error TrappingON ERROR, Run-time Errors

Example

ERRCLEAR

NAME "a nonexisting filename.txt" AS "abc.txt"

IF ERR THEN lErrLine = ERL