Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- SIx Driver RDD v3.00 - Reference Guide - <b>logical index record functions:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Logical Index Record Functions:

  Have you ever tried to build a positional scroll bar for a browse routine?
  You know, those cool things along the side that show where your are within
  the file.  It's easy enough to do with a plain database - just divide the
  record count by RECNO() and you've got the position.  So what do you do
  with an indexed database?  And even more difficult, what if you have a
  conditional index?  You don't even know how many records you're dealing
  with!

  The answer is simple: Sx_KeyCount() and Sx_KeyNo(), the SIx Driver's
  index versions of RECCOUNT() and RECNO().  Sx_KeyCount() tells you how
  many keys are in an index, and Sx_KeyNo() returns the current position
  within the index.

  NOTE:  See SCRLLBAR.PRG for a working demo of how to use Sx_KeyNo() and
         Sx_KeyCount() to create a scroll bar for a browse window.


See Also: Sx_KeyNo() Sx_KeyCount()

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