|
<< Click to Display Table of Contents >> Delphi Examples: DbiGetRecordCount |
![]() ![]()
|
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;