GetRecCount 

Syntax:             long GetRecCount ();

Return Value:    The number of records that the query has returned.

Remarks:

Call this method to obtain the number of records returned by the query.

Example:

This sample code shows how to use GetRecCount () method to update contents of some display field situated in the Status bar of host application.

            void CELS_QBDemoView::OnShowRecordsIndicator(CCmdUI* pCmdUI)

{

  CString str;

  str.Format(_T("Records: %ld"), m_QBCtrl.GetRecCount());

  pCmdUI->SetText(str);  

}