Vcl.DBCtrls.TDBLookupListBox.KeyValue

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property KeyValue: Variant read FKeyValue write SetKeyValue default 0;

C++

__property KeyValue = {default=0};

Properties

Type Visibility Source Unit Parent
property public
Vcl.DBCtrls.pas
Vcl.DBCtrls.hpp
Vcl.DBCtrls TDBLookupListBox

Description

Represents the common value of the KeyField field and the DataField field.

Vcl.DBCtrls.TDBLookupListBox.KeyValue inherits from Vcl.DBCtrls.TDBLookupControl.KeyValue. All content below this line refers to Vcl.DBCtrls.TDBLookupControl.KeyValue.

Represents the common value of the KeyField field and the DataField field.

Use KeyField to determine the value represented by the lookup control (not the value displayed by the lookup control). When KeyValue is set, the lookup control attempts to find a record from the ListSource's dataset where the value of KeyField matches KeyValue. If such a match is found, the lookup control displays the value of ListField on that record.

See Also