JVCL Help:TJvValidators

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

Search in all projects

Class Hierarchy[edit]



Maintains a list of TJvBaseValidator or descendants.



 TJvValidators = class(TJvComponent);


  1. JVCLInfo

Use validators to handle the validation logic in your application. Traditionally, developers have been forced to write validation logic for user input in their applications. With validators, the whole process can be set up at design time and many times even without writing more than a single line of code.
When validators have been set up, a single call to the Validate method checks all validators which in turn perform their validation according to their settings. If any of the validations fails, there are several options available to handle the failure. Here are the options available:

  • Use an ErrorIndicator. An ErrorIndicator can display an error icon next to the control thatfailed the validation. Moving the mouse pointer over the error icon, displays the error message in a hint window.
  • Use a ValidationSummary. A ValidationSummary collects all error messages and puts them into a string list. You can display this list of errors any way you like. For example, you can easily display all active errors in a label on the form.
  • Use the OnValidateFailed event. With the OnValidateFailed event, you can do any custom error handling of your choice.
  • Create a custom method of retrieving failed validations.

You can even use all of the options at the same time or in different combinations.


See Also[edit]

TJvBaseValidator, TJvValidationSummary





Contribute to this help topic[edit]

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