The ERL function returns the line number where the last error occurred. Example 300 IF (ERL = 20%) THEN CLOSE #2%