qb45advr.hlp (
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
ERL and ERR Function Details
◄QuickSCREEN► ◄Details► ◄Example► ◄Contents► ◄Index►
──────────────────────────────────────────────────────────────────────────────
ERL and ERR Function Details
Syntax
ERR
ERL
After an error, the function ERR returns the code for the error, and
the ERL function returns the line number where the error occurred.
Because ERR and ERL return meaningful values only after an error, they
are usually used in error-handling routines to determine the error and
the corrective action.
Because ERL and ERR are functions, you cannot use them on the left-hand
side of an assignment statement. However, you may indirectly set them with
the ERROR statement.
Differences from BASICA
The ERL function returns only the line number, not line label, located
before the line producing the error. If your program has no line
numbers, ERL always returns 0.