<< Click to Display Table of Contents >> Navigation: Apollo API Listing > sx_OrderRecNo |
Declare Function sx_OrderRecNo Lib "Apollo9.dll" () As Long
LONG FAR PASCAL sx_OrderRecNo (VOID);
Retrieves the logical record number according to the position of the key in the current active order.
Note: Do not use this function in speed critical operations. This is the slowest function in Apollo. The only way of determining the logical record number is to actually count the keys in the index.
The logical position of the key in the order. You can retrieve the number of records in a conditional index by using sx_QueryRecCount.
' Display RECORD xxx of yyyy
BoxRecno.Text = Format$(sx_OrderRecNo(), "####0") + " of " +
Ä Format$(sx_RecCount(), "#####0")
SetScrollRange(hwnd, SB_VERT, 1, sx_RecCount(), FALSE);
SetScrollPos(hwnd, SB_VERT, sx_OrderRecNo(), TRUE);