执行完下面的代码后, 把当前的Form给关闭了, 这是怎么回事呀
try
dh:=trim(aqMaster['hddh']);
dm.Connection.BeginTrans ;
aqMaster.Delete ;
with ADOCommand1 do
begin
Close;
CommandText:='delete from actname where hddh='''+dh+'''';
Execute;
end;
dm.Connection.CommitTrans ;
except
dm.Connection.RollbackTrans ;
showmessage('Ω埃巨ア毖');
end;
try
dh:=trim(aqMaster['hddh']);
dm.Connection.BeginTrans ;
aqMaster.Delete ;
with ADOCommand1 do
begin
Close;
CommandText:='delete from actname where hddh='''+dh+'''';
Execute;
end;
dm.Connection.CommitTrans ;
except
dm.Connection.RollbackTrans ;
showmessage('Ω埃巨ア毖');
end;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货