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, Method, or Property.  With ERL, line numbers are of the traditional-basic line numbering variety, not the physical source code line.

See also

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

Example

10 ERRCLEAR

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

30 IF ERR THEN lErrLine = ERL    ' lErrLine = 20