楼上说的对,使用recordcount属性.
例如;with adoquery do
begin
close;
sql.clear;
sql.add('Select * from 表名');
Open;
AllRecord := RecordCount;
CLose;
end;
showmessage('总记录数是:' + IntTOStr(AllRecord))
例如;with adoquery do
begin
close;
sql.clear;
sql.add('Select * from 表名');
Open;
AllRecord := RecordCount;
CLose;
end;
showmessage('总记录数是:' + IntTOStr(AllRecord))
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货