Topic group Related topics
Moves the record pointer in the current or specified work area.
SKIP [<expN>] [IN <alias>]
The number of records dBASE Plus moves the record pointer forward or backward in the table open in the current or specified work area. If <expN> evaluates to a negative number, the record pointer moves backward. SKIP with no <expN> argument moves the record pointer forward one record.
The work area in which to move the record pointer.
Use SKIP to move the record pointer relative to its current position, in the current index order, if any.
If you issue a SKIP command when the record pointer is at the last record in a table, the record pointer moves to the end-of-file; EOF( ) returns true. Issuing any additional SKIP commands (that move forward) causes an error. Similarly, if you issue a SKIP -1 command when the record pointer is at the first record of a file, BOF( ) returns true, and a subsequent negative SKIP command cause an error.
SKIP IN <alias> lets you advance the record pointer in another work area without selecting that work area first with the SELECT command.
If you are using SKIP in a loop to visit all the records in a table, consider using a SCAN loop instead.
Call the next( ) method of the desired Rowset object.