Difference between revisions of "Midware TMWTable.OnEditError"
Jump to navigation
Jump to search
(Created page with ' Main page -> Midware component reference -> TMWTable -> OnEditError ==…') |
|||
Line 3: | Line 3: | ||
== Definition == | == Definition == | ||
− | + | <syntaxhighlight lang="delphi"> | |
+ | type | ||
+ | TDataAction = (daFail, daAbort, daRetry); | ||
+ | TDataSetErrorEvent = procedure(DataSet: TDataSet; E: EDatabaseError;var Action: TDataAction) of object; | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | <syntaxhighlight lang="delphi"> | ||
+ | property OnEditError: TDataSetErrorEvent; | ||
+ | </syntaxhighlight> | ||
== Description == | == Description == |
Latest revision as of 12:23, 24 May 2011
Main page -> Midware component reference -> TMWTable -> OnEditError
Definition
<syntaxhighlight lang="delphi">
type
TDataAction = (daFail, daAbort, daRetry); TDataSetErrorEvent = procedure(DataSet: TDataSet; E: EDatabaseError;var Action: TDataAction) of object;
</syntaxhighlight>
<syntaxhighlight lang="delphi"> property OnEditError: TDataSetErrorEvent; </syntaxhighlight>
Description
Occurs when an application attempts to modify or insert a record and an exception is raised.
Write an OnEditError event handler to handle exceptions that occur when an attempt to edit 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.OnEditeError for more details.