NAME

err - error code for the most recent error
erl - line number associated with the most recent error

SYNOPSIS

v = err
v = erl

DESCRIPTION

Err and erl are built-in variables which give the error code and line number of the most recent error to have occurred in the module.  They are most often used within error-handling routines. 

Err and erl are "read-only" variables.  They may not be assigned values directly, but may be changed by using the error statement. 

EXAMPLE

This program illustrates the use of err, erl, and error:
	  on error goto 5
	1 input "How many days hath February"; n
	2 if n > 29 then error 205
	3 if n = 28 then error 206
	4 if n < 28 then error 207
	  if n = 29 then print "Only every 4 years" : end
	5 if err = 205 then print "No"
	  if err = 206 then print "What about leap year?"
	  if err = 207 then print "Get serious!"
	  if erl = 2 then resume 1
	  if erl = 3 then resume 6
	  if erl = 4 then resume 7
	6 for t = 1 to 90000 : next t : cls : goto 1
	7 print "What month has less than 28 days?"
	  goto 1

SEE ALSO

on error, error, resume

from The Basmark QuickBASIC Programmerís Manual by Lawrence Leinweber