dbSkipper()

Helper function to skip a database

Syntax

dbSkipper( <nRecs> ) --> nSkipped

Arguments

<nRecs> is the number of records to skip relative to current record. Positive number would try to move the record pointer forward, while a negative number would try to move the record pointer back <nRecs> records.

Returns

dbSkipper() return the number of actual record skipped.

Description

dbSkipper() is a helper function used in browse mechanism to skip a number of records while giving the caller indication about the actual records skipped.
Examples
      // open a file and find if we've got enough records in it
      USE MonthSales
      IF dbSkipper( 100 ) == 100
         ? "Good work! You can party now"
      ELSE
         ? "Too bad, you should really work harder"
      ENDIF
      CLOSE
Status

Ready

Compliance

dbSkipper() is an XBase++ compatibility function and does not exist as a standard CA-Clipper 5.x function.

This function is only visible if source/rtl/browdb.prg was compiled with the HB_COMPAT_XPP flag.

Files

Library is rtl

See Also