From Br Wiki
Jump to: navigation, search

The NOREC error condition can be specified at the end of a program statement and in the Exit statement, but it cannot be used with the ON error statement.

Error Traps:=

NOREC traps the following three types of errors when a file is opened for RELATIVE access with a REC= clause:

1.) The specified record has been deleted.
2.) The number is at least two greater than the last record number of the file (for WRITE).

3.) The number is greater than the last record number in the file (for READ).