0057: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
{{Error
{{Error
|0057
|0057
|'''NoRec''' / [[Record]] not found
|[[NoRec]] / [[Record]] not found
|A [[program]] tried to access a record in a [[relative]] [[file]] but could not find the record (record was [[DEL|deleted]] or is beyond [[end of file]]), or an [[index file]] points to a record that does not exist in the [[keyed]] file or was deleted.
|A [[program]] tried to access a record in a [[relative]] [[file]] but could not find the record (record was [[DEL|deleted]] or is beyond [[end of file]]), or an [[index file]] points to a record that does not exist in the [[keyed]] file or was deleted.
|Correct the error-causing program statement to specify a valid record number.  Or add a [[NoRec]] error trap to the end of the [[line]].  [[LRec]](file number) returns the number of the last record in the file.
|Correct the error-causing program statement to specify a valid record number.  Or add a [[NoRec]] error trap to the end of the [[line]].  [[LRec]](file number) returns the number of the last record in the file.
}}
}}
[[Category:Error Codes]]
[[Category:Error Codes]]

Latest revision as of 17:14, 7 April 2021

Summary:

NoRec / Record not found

Cause:

A program tried to access a record in a relative file but could not find the record (record was deleted or is beyond end of file), or an index file points to a record that does not exist in the keyed file or was deleted.

Remedy:

Correct the error-causing program statement to specify a valid record number. Or add a NoRec error trap to the end of the line. LRec(file number) returns the number of the last record in the file.