Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - skip move the record pointer to a new position http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 skip                Move the record pointer to a new position
------------------------------------------------------------------------------
 Syntax
   [!sAlias] skip [gRecords]

 Arguments
   sAlias is the database to operate on.
   gRecords is the number of records to skip.

 Description
   The skip command moves the record pointer in an alias.

   If skip is specified without gRecords, then the record number is
   incremented by 1. skip respects the status of the set delete flag and
   verifies the record through the filter list. If gRecords is specified,
   then skip moves the record pointer as specified in gRecords. If
   gRecords is a negative number, then skip moves the pointer toward the
   top of the database.

   skip also positions the record pointer for any child alias established by
   set relation to. If an index file is controlling the current or selected
   alias, then skip follows the index order.

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

   proc Test_skip
   open sTest
   ? recno()
   skip reccount() - 1       // this is identical to go bottom
   ? recno()
   !sTest skip -3            // skip backwards
   ? recno()
   endproc

   proc main
   Test_skip()
   endproc

See Also: go

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson