JVCL Help:TJvCustomValidator.OnValidate

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

Search in JVCL Help

 
Search in all projects
 

Summary

Occurs when the custom validator needs to know if the validation is to succeed or not.


Pascal

 TJvCustomValidateEvent = procedure (Sender: TObject; ValueToValidate: Variant; varValid: Boolean) ofobject;
propertyOnValidate: TJvCustomValidateEvent;


Parameters

Parameters Description
Valid Set this parameter to true if the validation was successful, to false otherwise.
ValueToValidate The value to validate.
Sender The object that triggered the event.


Description

Write a handler for the OnValidate event to perform the validation. OnValidate is called by the Validate function and the return value from this event is returned by Validate. If you don't assign an event handler, Validate always returns true.


See Also

TJvValidators.Validate


About

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