[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'DBCtrls' (#lcl)

TDBLookupListBox.KeyField

Field name in the lookup dataset with the value for the control.

Declaration

Source position: dbctrls.pp line 512

published property TDBLookupListBox.KeyField : string
  read GetKeyField
  write SetKeyField;

Description

KeyField is a String property which contains the name of the field in the lookup dataset which provides the value stored in the data-aware control. Changing the value in KeyField causes the internal TDBLookup component to be updated, and calls the UpdateLookup method.

Use ListField to set the field name with the values displayed in the list of items for the control. Use ListFieldIndex to specify the list field by its ordinal field position in the lookup dataset.

See also

TDBLookupListBox.ListField

  

Field name with the descriptive value displayed in the listbox.

TDBLookupListBox.ListFieldIndex

  

Ordinal position of the field in the lookup dataset with the descriptive value displayed in the control.

TDBLookupListBox.ListSource

  

Datasource with the lookup dataset for the control.

TDBLookup

  

TDBLookup - used as source of data by TDBLookupListBox or TDBLookupComboBox, to find data from a lookup table.


Version 4.0 Generated 2025-05-03 Home