在while not AdoQuery.eof do循环中,如何判断当前的记录是最后一条记录????? 我试过if AQ.eof then...但不是最后一条呀 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 IF Not ADOQuery1.Eof then ADOQuery1.Last; if ADOQuery1.RecNo=ADOQuery1.RecordCount then {} if AQ.eof then... 如果不是的话.那就有问题了 if AQ.eof then... 就是这个看看问题是不是处在别处 可以通过 adoquery 的 RecordCount 和 RecNo 来判断. " if adoquery1.Recordcount=adoquery1.RecNo+1 then " 设置一个变量var i:integer; //标志顺序的记录号begin i:=1; while not AQ.eof do begin if i=AQ.Recordcount then showmessage('this is the last record!'); i:=i+1; AQ.next; end;end;这样,当你到作后一条的时候就会提示你了 如何把一个变量清空? 在一个单元中如何控制另一窗体上的控件? Delphi2007试用版本奇怪的问题? dbgrideh 的问题 关于导出Excel问题 图表与Access!!! Delphi+Oracle “不支持此接口”--在线等待,立即给分 如何得到指定目录下(含目录)所有文件占用的磁盘空间大小? 请问数组型转换成olevariant型的函数是什么? 急,请大家帮忙! 再请教一个存储过程的条件判断问题 一个显示的问题!
ADOQuery1.Last;
adoquery 的 RecordCount 和 RecNo 来判断.
" if adoquery1.Recordcount=adoquery1.RecNo+1 then "
var i:integer; //标志顺序的记录号
begin
i:=1;
while not AQ.eof do
begin
if i=AQ.Recordcount then
showmessage('this is the last record!');
i:=i+1;
AQ.next;
end;
end;
这样,当你到作后一条的时候就会提示你了