在 Firemonkey 中,通过使用 ComboBoxes 我将显示的项目设置为以下行:
ComboBoxSomething.ItemIndex := ComboBoxSomething.Items.IndexOf(VarToStr(Query.FieldValues['fieldname']));
有一个 BindListLink PosSource 绑定,其中控件 ItemIndex+1 绑定到 Bindsource 的 Recno。
但是,它仅在我通过单击更改 Combobox 选定文本时才有效,并且在我使用上面的代码设置 ItemIndex 时不执行任何操作。
你有什么建议,做什么不同?
先感谢您!
恩德雷