READS-NEXT
|
Syntax: |
READS-NEXT(<Key Number>) <Name of
Index File> ON ERROR … END
|
||||
|
|
|
||||
|
Meaning: |
Reads the next data record (next to the
current record) from an Index File in the sorting order of the secondary key
<Key Number>. In the case of an error the block ON ERROR ... END is
executed. This instruction is only allowed if a valid READS-,
STARTS-, READS-PREVIOUS- or READS-NEXT instruction has been executed before with the same key
<Key Number>, otherwise the error 1021 is reported. |
||||
|
Parameter: |
|
||||
|
Sample: |
CUSTOMER.NAME$ = "" END% = 0 STARTS(1) CUSTOMER ON
ERROR END% = 1 END WHILE END% = 0 DO … READS-NEXT(1) CUSTOMER ON ERROR
END% = 1 END ENDDO |
||||
|
See also: |
|