德尔福柏林FMX Combobox值通过LiveBindings

时间:2017-03-06 22:15:30

标签: delphi firemonkey delphi-10.1-berlin livebindings

我有一个combobox,其中包含以下手动输入的值:ActiveInactive。但是,我想在数据库中仅保存值AI。我如何通过livebindings

执行此操作

1 个答案:

答案 0 :(得分:0)

FillDataSource = BindSourceDB1 FillValueFieldName = 'value' // A and I would be in this field FillDisplayFieldName = 'name' // Active and Inactive would be in this field

How to get Item.LookupData and SelectedValue (as integer) of an FMX TComboBox at runtime?