ERL
This page was last modified 21:00, 25 November 2016 by Mars2000you. Based on work by Gdx and Snout.

Contents

Effect

Returns the line number in which an error occured.

Syntax

ERL

Example

10 ON ERROR GOTO 50
20 MSX ' Generates an error, as "MSX" is not a valid MSX-BASIC command
30 END
50 PRINT "An error occurred in line ";ERL
60 RESUME 30
 
RUN
An error occurred in line 20

Related to

ERR, ERROR, ON ERROR GOTO, RESUME

Compatibility

MSX-BASIC 1.0 or higher