RDD

DbSkipper()

Move relative to the current record and return the distance moved

Syntax

Signature
DbSkipper( [nRecords] ) --> nSkipped

Arguments

nRecords

Requested movement. Positive values move forward, negative values backward.

Return value

The number of records actually skipped.

Description

DbSkipper() moves through visible records like DbSkip() and reports the number of records actually crossed before reaching a boundary.

Notes

At EOF or BOF the returned value can be smaller than requested.

Example

DbSkipper.prg
PROCEDURE Main()

   DbUseArea( .T., , "people.dbf", "People" )
   DbGoTop()
   QOut( "Skipped: " + LTrim( Str( DbSkipper( 1 ) ) ) )
   DbCloseArea()

RETURN

Output

See also