N
noall
Unregistered / Unconfirmed
GUEST, unregistred user!
with Queryans do begin //queryans是TAdoquery
Queryans.Active :=False;//第二次时在这里出错
SQL.Clear;
SQL.Add('Select * from answer where parent='+IntToStr(OneNum));
Prepared:=True;
Open;
Memo.Clear ;
while not eof do begin
memo.Lines.Add(FieldByname('content').asString);
next;
end;
end;
Queryans.Active :=False;//第二次时在这里出错
SQL.Clear;
SQL.Add('Select * from answer where parent='+IntToStr(OneNum));
Prepared:=True;
Open;
Memo.Clear ;
while not eof do begin
memo.Lines.Add(FieldByname('content').asString);
next;
end;
end;