| xHarbour Reference Documentation > Function Reference |
![]() |
![]() |
![]() |
Moves the record pointer via the controlling index.
OrdSkipRaw( [<nRecords>] ) --> NIL
The return value is always NIL.
OrdSkipRaw() moves the record pointer using information from the controlling index only, and ignores any filter condition set with SET DELETED or SET FILTER. All records included in the controlling index can be navigated to with OrdSkipRaw().
Use function DbSkip() when a filter condition should be recognized for record pointer movement.
| See also: | DbSkip(), DbOrderInfo(), OrdKeyCount(), OrdKeyGoTo(), OrdScope(), Recno() |
| Category: | Database functions , Index functions , xHarbour extensions |
| Source: | rdd\dbcmd.c |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
// The example demonstrates movement of the record pointer using
// DbSkip() versus OrdSkipRaw(). Note that Bof() returns .F.
// with OrdSkipRaw() although the filter condition is not met.
PROCEDURE Main
USE Customer
INDEX ON Upper(LastName) TO Cust01
? Bof(), Lastname // result: .F. Alberts
SET FILTER TO Lastname >= "K"
GO TOP
? Bof(), Lastname // result: .F. Keller
DbSkip( -1 )
? Bof(), Lastname // result: .T. Keller
OrdSkipRaw( -1 )
? Bof(), Lastname // result: .F. Henreid
USE
RETURN
http://www.xHarbour.com