Vcl.ValEdit.TValueListEditor.OnValidate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnValidate: TOnValidateEvent read FOnValidate write FOnValidate;

C++

__property TOnValidateEvent OnValidate = {read=FOnValidate, write=FOnValidate};

Properties

Type Visibility Source Unit Parent
event published
Vcl.ValEdit.pas
Vcl.ValEdit.hpp
Vcl.ValEdit TValueListEditor

Description

Occurs when focus shifts away from a cell in the value list editor.

Write an OnValidate event handler to validate any edits the user enters in a cell before focus leaves it. OnValidate gives applications an opportunity to provide more validation than the EditMask property of the corresponding TItemProp object can supply.

OnValidate only occurs if the user edited the value of the cell that is about to lose focus. The OnValidate event handler can verify the value the user supplied, and if it is not acceptable, raise an exception.

See Also