| 发表于:2007-03-03 23:55:54 楼主 |
请问 dbedit1...等控件绑定到了datam.customer中,偶在其相关的ds_customer的updatedata中加入了判断,但为什么总是提示我保存? 请问,如何改?谢了... ------------------------------------------------------------------ procedure tdatam.ds_customerupdatedata(sender: tobject); begin if messagedlg( '是否要保存记录 ? ',mtconfirmation, [mbyes, mbno], 0) <> mryes then customer.cancel else customer.post; end; |
|
|
|
|