怎么可能呢﹖
procedure TForm1.BitBtn1Click(Sender: TObject);
begin
adoquery1.SQL.Add('select * from jg');
adoquery1.Active:=true;
while not adoquery1.Eof do begin
//showmessage(inttostr(adoquery1.RecNo));
memo1.Lines.Add(inttostr(adoquery1.RecNo));
application.ProcessMessages;
adoquery1.Next;
end;
我也遇到过这个情况,解决的办法是,使用一个变量。
myReno = 0
adoquery1.SQL.Add('select * from jg');
adoquery1.Active:=true;
while not adoquery1.Eof do begin
myReno := myReno +1
showmessage(inttostr(myRecNo));
application.ProcessMessages;
adoquery1.Next;
end;