Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FreshWin (c) Fresh Technologies - <b>ntxpos() miscellaneous function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  NTXPOS()                                            Miscellaneous Function
 Purpose..: Find the relative record number from an NTX file
-------------------------------------------------------------------------------
 Syntax...: NtxPos( <nNtxOrd>, <nRecNo> ) --> nNtxPosition

 Arguments: <nNtxOrd>= The current index order from INDEXORD().

            <nRecNo> = The "real" record number for which
                       to find the NTX position.

 Returns..: nNtxPosition - the record number's position in the NTX.

 Remark...: This function is useful for using elevator|scroll bars in
            an indexed TBrowse display. We need to find the NTX
            position once we have done a SEEK, for example, to
            reposition the thumb in the scroll bar display.

 Source...: NTXPOS.C
            Copyright: RCM Software Pty. Ltd.
            Author: Graham D. McKechnie
            Modified: Robert A. DiFalco
-------------------------------------------------------------------------------
 Example...: The example adjusts the scroll bar display after a
            seek has been completed in a TBrowse function.

              dbSeek( upper( chr( nKey ) ) )
              sbSetPos( aVSB, NtxPos( indexord(), recno() ) )

See Also: NtxRec()

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