Namespace: Consultingwerk.SmartComponents.Implementation
Class 
ClientValidationError Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.AppError
Implements: Consultingwerk.SmartComponents.Base.IFieldValidationError

File:ClientValidationError
Author(s):Marko Rüterbories / Consultingwerk Ltd.
Created:Tue Mar 03 15:51:41 CET 2009


Top Constructor Summary
Options Name Purpose
+ ClientValidationError (character, character) Constructor for the ClientValidationError class
+ ClientValidationError (character, Control) Constructor for the ClientValidationError class
+ ClientValidationError (character, integer, character) Constructor for the ClientValidationError class
+ ClientValidationError (character, integer, Control) Constructor for the ClientValidationError class
+ ClientValidationError (Control) Constructor for the ClientValidationError class

Top Property Summary
Options Name Purpose
+ System.Windows.Forms.Control FocusControl Returns the reference of the Control to focus with this error
+ CHARACTER FocusControlName Returns the name of a data property (binding source field) that is flagged with an error from a validation routine.


Constructor Detail
Top

PUBLIC ClientValidationError (character, character)

Purpose: Constructor for the ClientValidationError class
Notes: The Constructor creates a new instance of ClientValidationError with
the ReturnValue property set to the value of the ErrorString
parameter and sets oFocusControl to the given poFocusControl.

Parameters:
pcReturnValue CHARACTER
The return value for the error
pcFocusControlName CHARACTER
The name of the Control (BindingSource Column name)
Top

PUBLIC ClientValidationError (character, Control)

Purpose: Constructor for the ClientValidationError class
Notes: The Constructor creates a new instance of ClientValidationError with
the ReturnValue property set to the value of the ErrorString
parameter and sets oFocusControl to the given poFocusControl.

Parameters:
pcReturnValue CHARACTER
The return value for the error
poFocusControl System.Windows.Forms.Control
The reference to the focus control
Top

PUBLIC ClientValidationError (character, integer, character)

Purpose: Constructor for the ClientValidationError class
Notes: The Constructor creates a new instance of ClientValidationError and
assigns the first message on the object with the values from the
ErrorMessage and MessageNumber arguments. It also sets the
NumMessages property to 1 and sets oFocusControl to the given
poFocusControl.

Parameters:
pcErrorString CHARACTER
The error message for the error object
piErrorNumber INTEGER
The error number for the error object
pcFocusControlName CHARACTER
The name of the Control (BindingSource Column name)
Top

PUBLIC ClientValidationError (character, integer, Control)

Purpose: Constructor for the ClientValidationError class
Notes: The Constructor creates a new instance of ClientValidationError and
assigns the first message on the object with the values from the
ErrorMessage and MessageNumber arguments. It also sets the
NumMessages property to 1 and sets oFocusControl to the given
poFocusControl.

Parameters:
pcErrorString CHARACTER
The error message for the error object
piErrorNumber INTEGER
The error number for the error object
poFocusControl System.Windows.Forms.Control
The reference to the focus control
Top

PUBLIC ClientValidationError (Control)

Purpose: Constructor for the ClientValidationError class
Notes: The Constructor creates a new instance of ClientValidationError with
an empty message list and sets oFocusControl to the given
poFocusControl.

Parameters:
poFocusControl System.Windows.Forms.Control
The reference to the focus control


Property Detail
Top

PUBLIC System.Windows.Forms.Control FocusControl

Purpose: Returns the reference of the Control to focus with this error
Notes: If the result of a field validation indicates a validation error,
the currently tested Control is indicated by the FocusControl. This
can be used to set the focus in the running application to the field with
the invalid value.

Returns System.Windows.Forms.Control
Top

PUBLIC CHARACTER FocusControlName

Purpose: Returns the name of a data property (binding source field) that
is flagged with an error from a validation routine.
Notes:

Returns CHARACTER


©2006-2016 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       26.08.2016 08:31:41