procedure TForm1.Query1AfterScroll(DataSet: TDataSet);
begin
memo1.clear;
while not query1.eof do
begin
memo1.lines.add(query1.fieldbyname('namechr').asstring);
next;
end;
end;
end.
实验失败!
procedure TForm1.Query1AfterScroll(DataSet: TDataSet);
begin
with query1 do
begin
Fisrt;
While Not Eof do
Begin
Memo1.lines.add(fieldbyname('Namechr').Asstring);
next;
end;
end;
end.
实验失败!没说明:fisrt