F
fpsky
Unregistered / Unconfirmed
GUEST, unregistred user!
if ClientDataSet1.RecordCount > 0 then
begin
if Application.MessageBox('真的要删除吗?', '提示信息',MB_OKCANCEL+MB_ICONQUESTION)= 1 then
begin
ClientDataSet1.Delete;
if ClientDataSet1.ApplyUpdates(-1) > 0 then
begin
Application.MessageBox('删除数据出错...', '系统信息', MB_OK);
Abort;
end;
end;
end;
删除数据报错!
程序结构:ADO+MIDAS+ORACLE8
begin
if Application.MessageBox('真的要删除吗?', '提示信息',MB_OKCANCEL+MB_ICONQUESTION)= 1 then
begin
ClientDataSet1.Delete;
if ClientDataSet1.ApplyUpdates(-1) > 0 then
begin
Application.MessageBox('删除数据出错...', '系统信息', MB_OK);
Abort;
end;
end;
end;
删除数据报错!
程序结构:ADO+MIDAS+ORACLE8