<< Click to Display Table of Contents >> Navigation: Apollo API Listing > sx_RecCount |
Declare Function sx_RecCount Lib "Apollo9.dll" () As Long
LONG FAR PASCAL sx_RecCount (VOID);
Extracts the physical number of records in the current table. This number includes deleted and filtered records.
If you wish to determine the number of records represented in a conditional index or query, use sx_QueryRecCount. If the count must be absolutely accurate (respecting all filters, conditions, and deleted records), use sx_Count.
The physical record count.
' Display database info
Text1.Text = sx_WorkArea(0&)
Text2.Text = sx_BaseName()
Text3.Text = sx_Alias(0)
Text4.Text = sx_BaseDate()
Text5.Text = sx_RecSize()
Text6.Text = sx_RecCount()
Text7.Text = sx_FieldCount()
SetScrollRange(hwnd, SB_VERT, 1, sx_RecCount(), FALSE);
SetScrollPos(hwnd, SB_VERT, sx_OrderRecNo(), TRUE);