NEXT is often used with FIND to step through the records of a table. NEXT has the following syntax.
Steps := Record.NEXT([Steps])
In the following example, FIND is used to go to the first record of the table. NEXT is used to step through every record, until there are no more. When there are no more records, NEXT returns 0 (zero).
FIND('-');REPEAT
// process record
UNTIL NEXT = 0;
No comments:
Post a Comment