P
plwei
Unregistered / Unconfirmed
GUEST, unregistred user!
请大家帮助检察一个代码:
query1.close;
query1.CachedUpdates:=true;
query1.updateobject:=updateSQL1;
query1.database.StartTransaction;//在此处出现“access violation at address 0047F32A”的错误.
try
sqltext:='delete from filelist.dbf where ddkey='+c;
query1.SQL.Clear ;
query1.SQL.add(sqltext);
query1.Prepare ;
uery1.ExecSQL ;
query1.applyupdates;
query1.database.commit;
except
query1.database.rollback;
application.MessageBox('删除当前记录时,出现错误!','提示框',mb_ok+mb_iconinformation);
end;
query1.CommitUpdates ;
请大家给予指正。
query1.close;
query1.CachedUpdates:=true;
query1.updateobject:=updateSQL1;
query1.database.StartTransaction;//在此处出现“access violation at address 0047F32A”的错误.
try
sqltext:='delete from filelist.dbf where ddkey='+c;
query1.SQL.Clear ;
query1.SQL.add(sqltext);
query1.Prepare ;
uery1.ExecSQL ;
query1.applyupdates;
query1.database.commit;
except
query1.database.rollback;
application.MessageBox('删除当前记录时,出现错误!','提示框',mb_ok+mb_iconinformation);
end;
query1.CommitUpdates ;
请大家给予指正。