RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ValEdit.TOnValidateEvent Type

TOnValidateEvent is the type for event handlers that validate the values a user types into a value list editor.

Pascal
TOnValidateEvent = procedure (Sender: TObject; ACol, ARow: Longint; const KeyName, KeyValue: string) of object;
C++
(Sender: TObject; ACol, ARow: Longint; const KeyName, KeyValue: string) ( TOnValidateEvent)();

Sender is the value list editor that contains the edited cell.  

ACol and ARow identify the cell by its column and row numbers, respectively. The first row or column has an index of 0, the second has an index of 1, and so on.  

KeyName is the current value of in the key column for ARow. This value includes any edits that have not yet been committed.  

KeyValue is the current value of the value column for ARow. This value includes any edits that have not yet been committed. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!