L
Link_Chen
Unregistered / Unconfirmed
GUEST, unregistred user!
程式片斷如下:
procedure TfrmLend.
SpeedButton3Click(Sender: TObject);
begin
if DM.CDS_LendOver.recordcount = 0 then
begin
application.messagebox('沒有記錄可刪除', 'ERP管理系統', mb_iconinformation + mb_defbutton1);
exit;
end;
if application.messagebox('請確認是否刪除', 'ERP管理系統', mb_iconinformation + mb_yesno) = idyes then
begin
DM.CDS_LendOver.Delete;
DM.CDS_LendOver.ApplyUpdates(0);
end;
end;
追蹤到DM.CDS_LendOver.recordcount >0,且走了
DM.CDS_LendOver.Delete;
DM.CDS_LendOver.ApplyUpdates(0);
這兩句,可是後台Table中資料確沒被刪除掉,請問怎麼回事情?
procedure TfrmLend.
SpeedButton3Click(Sender: TObject);
begin
if DM.CDS_LendOver.recordcount = 0 then
begin
application.messagebox('沒有記錄可刪除', 'ERP管理系統', mb_iconinformation + mb_defbutton1);
exit;
end;
if application.messagebox('請確認是否刪除', 'ERP管理系統', mb_iconinformation + mb_yesno) = idyes then
begin
DM.CDS_LendOver.Delete;
DM.CDS_LendOver.ApplyUpdates(0);
end;
end;
追蹤到DM.CDS_LendOver.recordcount >0,且走了
DM.CDS_LendOver.Delete;
DM.CDS_LendOver.ApplyUpdates(0);
這兩句,可是後台Table中資料確沒被刪除掉,請問怎麼回事情?