Err and erl are "read-only" variables. They may not be assigned values directly, but may be changed by using the error statement.
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
from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber