0057: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
|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 | |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]] |
Revision as of 16:14, 12 July 2013
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. |