Equinox Online Help - Language Reference - A to Z
SkipRecord |
|
---|---|
Applies to | |
Syntax | SkipRecord NumberExpression, [LockExpression] |
Action | [Statement] Skips over a specified number of records. |
Scope | Only usable in forms or subtables. |
Notes | This function operates in a similar way to NextRecord and PreviousRecord, but can move the record pointer by several records rather than just one. NumberExpression specifies the number of records skipped and may take positive and negative values. Positive values move the record pointer down the record list and negative values move it up. If NumberExpression is greater than the number of records above/ below the current record, the record pointer stops at the first/ last record. LockExpression allows you to control locking on the new record and may take one of the following values:
If LockExpression is omitted, it defaults to zero. Note that you only need to lock a record if you intend to edit its fields. If you only want to read values, it is not necessary to lock the record. Also note that an applied lock is automatically released when a new record is selected. However, if required, you may manually release the lock before changing records, using the Unlock statement. After the statement is executed, the SysError system workarea is set to one of the following values:
|
Category | Record navigation |
See Also | GroupFirstRecord, GroupLastRecord, GroupNextRecord, GroupPreviousRecord, GroupSkipRecord, LastRecord, NextRecord, PreviousRecord |
Example | The following examples show how the statement could be used: SkipRecord 1 | same as NextRecord |