sx_OrderRecNo

<< Click to Display Table of Contents >>

Navigation:  Apollo API Listing >

sx_OrderRecNo

VB Declaration

Declare Function sx_OrderRecNo Lib "Apollo9.dll" () As Long

C Declaration

LONG FAR PASCAL sx_OrderRecNo (VOID);

Description

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.

Return Value

The logical position of the key in the order. You can retrieve the number of records in a conditional index by using sx_QueryRecCount.

VB Example

' Display RECORD xxx of yyyy

BoxRecno.Text = Format$(sx_OrderRecNo(), "####0") + " of " +

Ä Format$(sx_RecCount(), "#####0")

C Example

SetScrollRange(hwnd, SB_VERT, 1, sx_RecCount(), FALSE);

SetScrollPos(hwnd, SB_VERT, sx_OrderRecNo(), TRUE);

See Also

sx_RecNo