Delphi Examples: DbiGetRecordCount

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Delphi Examples: DbiGetRecordCount

Return to chapter overview

Return the record count of the TDataSet descendant (TTable, TQuery, TStoredProc) passed in parameter D.

This example uses the following input:

 ShowMessage(IntToStr(fDbiGetRecordCount(Table1)));

 

The function is:

function fDbiGetRecordCount(D: TDataSet): LongInt;

begin

 Check(DbiGetRecordCount(D.Handle, Result));

end;