JVCL Help:TJvValidators.OnValidateFailed
JVCL Help: TJvValidators.OnValidateFailed Event
Search in JVCL Help
Search in all projectsSummary
Occurs when a validation fails.
Pascal
TJvValidateFailEvent = procedure (Sender: TObject; BaseValidator: TJvBaseValidator; var Continue: Boolean) ofobject;
propertyOnValidateFailed: TJvValidateFailEvent;
Parameters
Parameters | Description |
Continue | Set to true to continue validating the remaining validators, set to false to stop validation at once. |
BaseValidator | The validator that failed. |
Sender | The object that triggered the event. |
Description
Write a handler for the OnValidateFailed event to take specific action when a validation fails. If you don't write any event handler, you should use one of the other means of displaying the error to the user, either using an ErrorIndicator, a ValidationSummary or a custom method.
See Also
TJvValidators.ErrorIndicator, TJvValidators.ValidationSummary
About
Notes
TJvBaseValidator also has an OnValidateFailed event. You can use either or both depending on your needs. The OnValidateFailed event of TJvValidators is triggered even if the OnValidateFailed event of a validator is assigned.
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page