Topic complex |
Table functions |
Function |
nextrec() |
Short |
Physical record number of the following one |
Syntax |
NEXTREC(Tabellenhandle : INTEGER) : INTEGER |
Parameter |
db: table handle from OPENDB |
Return |
Physical record number of the following one
0, if no following record exists |
See also: |
|
Description |
The functions FIRSTREC, LASTREC, PREVREC and NEXREX always refer to the actual order which is defined with the function ACCESS.
The following orders (orders of access) are possible:
Number -> physical record number
Mark -> internal marking list
Index -> order is created from the index
A typical sweep sequence look like:
x:=FIRSREC(table)
WHILE x DO
READREC(table,x)
... work with the records
x:=NEXTREC(table)
END
Information: The functions of these group should only be used in context of the index accesses. To access via physical record numbers or marking lists there are faster options:
Number: x:=0; WHILE x++<=FILESIZE(table) DO ... END
Mark: x:=FIRSTMARK(table); WHILE x DO ...; x:=NEXTMARK(table,x) END
|