[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
NtxPos( nIndexOrd, nRecNo )-> <nRelPos>
------------------------------------------------------------------------------
PARAMETER:
<nIndexOrd> Is the order number of the target index
<nRecNo> Is the physical Record position to get its relative
position in the NTX Index
RETURNS:
<nRelPos> is the relative position of <nRecNo> in the NTX Index.
DESCRIPTION:
This function returns the logical record position of the given RecNo in
the given or current index order. With this, it is possible to position
scrollbars correctly ...
If no index is active, the return value of NtxPos() is equal to Recno().
Otherwise, the following applies :
EXAMPLE:
+--------------------------------------------------------------+
| /* Get the relative Positions */ |
| DBGOTOP() |
| ? NtxPos(1,Recno()) // -> 1 |
| |
| DBSKIP() |
| ? NtxPos(1,Recno()) // -> 2 |
| |
| /* Set the Scrollbar */ |
| oBrowse:oVScroll:SetPos( NtxPos( IndexOrd(),recno())) |
| |
+--------------------------------------------------------------+
SOURCE:
SOURCE\FUNCTION\NTXPOS.C
See Also:
SetPos
cNtxKey
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson