P
powersun
Unregistered / Unconfirmed
GUEST, unregistred user!
简单问题:在Form1中,ADOConnection1、adodateset1,当在adodataset1中找不到某一条记录时,showmodal添加窗口form2,
form2中
with adotable1 do
begin
append;
fieldbyname('zi').asstring:=trim(label1.Caption);
fieldbyname('shu').asinteger:=strtoint(edit1.text);
post;
end;
从form2中返回form1时,再次查找却找不到,而我在form2中添加代码后查找却OK!
Why?
form2中
with adotable1 do
begin
append;
fieldbyname('zi').asstring:=trim(label1.Caption);
fieldbyname('shu').asinteger:=strtoint(edit1.text);
post;
end;
从form2中返回form1时,再次查找却找不到,而我在form2中添加代码后查找却OK!
Why?