to 幸福鸟
你的例子不知如何用到我这里,请看
if not adotable1.Eof then
with adotable1do
begin
try
if MessageDlg('你确认删除这条记录吗?',
mtConfirmation, [mbYes, mbNo], 0) = mrYes then
begin
delete;
end;
except
//showmessage('数据删除错误');
application.messagebox('数据删除时发生错误!','警告',mb_ok+mb_iconstop);
end;
end;