sx_RecCount

<< Click to Display Table of Contents >>

Navigation:  Apollo API Listing >

sx_RecCount

VB Declaration

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

C Declaration

LONG FAR PASCAL sx_RecCount (VOID);

Description

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.

Return Value

The physical record count.

VB Example

' 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()

C Example

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

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

See Also

sx_Count, sx_OrderRecNo, sx_QueryRecCount, sx_RecNo