Delphi: Canceling a TDataSet.Post in an OnBeforePost Event

2016-09-01 11:29:15来源:CSDN作者:jzt_designer人点击

原文:http://stackoverflow.com/questions/838546/delphi-canceling-a-tdataset-post-in-an-onbeforepost-event

Calling the method Abort (from the unit System, if I recall correctly) raises a silent EAbortexception, which cancels just the current operation. That should work.


(Btw: this method of cancelling a databaset operation is also described somewhere deep in the help system as the 'normal' way to achieve this --- that's where I got this technique from originally).


最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台