Difference between revisions of "Midware TMWTable.OnDeleteError"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
'''type''' | '''type''' | ||
TDataAction = (daFail, daAbort, daRetry); | TDataAction = (daFail, daAbort, daRetry); | ||
− | TDataSetErrorEvent = procedure(DataSet: TDataSet; E: EDatabaseError; var Action: TDataAction) of object; | + | TDataSetErrorEvent = procedure(DataSet: TDataSet; E: EDatabaseError; var Action: TDataAction) of object; |
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 12:09, 24 May 2011
Main page -> Midware component reference -> TMWTable -> OnDeleteError
Definition
<syntaxhighlight lang="delphi">
type TDataAction = (daFail, daAbort, daRetry); TDataSetErrorEvent = procedure(DataSet: TDataSet; E: EDatabaseError; var Action: TDataAction) of object;
</syntaxhighlight>
proporty OnDeleteError:TDataSetNotifyEvent;
Description
Occurs when an application attempts to delete a record and an exception is raised.
Write an OnDeleteError event handler to handle exceptions that occur when an attempt to delete a record fails. E is a pointer to the database error object that contains the exception error message so that an application can display an error message. Action indicates how the handler should respond to the error.
See Delphi help about TDataSet.OnDeleteError for more details.