ERLIN
Syntax |
ERLIN |
Location |
QL ROM (post JM version) |
This function returns the line where the last error occurred. If the error occurred in a line typed into the command window (#0), then zero is returned (zero is also returned if there is no error).
Example
It takes a lot of time to debug programs, so save typing by including a variation of the following line in your BOOT program. Then, if an error occurs and the program stops with an error message, simply press <ALT><E> to see and edit the line where something went wrong:
ALTKEY "e","ED ERLIN-20"&CODE(216)&CODE(216),""
or:
ALTKEY "e","AUTO ERLIN",""
CROSS-REFERENCE
ERNUM returns the error number, REPORT invokes an error message and WHEN ERRor allows error trapping. ERLIN% is exactly the same.