FireMonkey ComboBox assigning Selected. Text from query

  

I need to allow my users to view a previously selected item from a ComboBox. A query provides the previous choice to the ComboBox.

I was hoping Live Bindings would get me through it, but it is so slow, I can’t use it.

I am able to complete a similar action using a ComboEditBox, but can’t seem to sort out what needs to be done with the ComboBox.

For the ComboEditBox, the following code works fine:

ComboInspector1.Text := FDQueryGetInspectionInspector_1.Text;

However, the following code does not work for the ComboBox:

ComboStationLocated.Selected.Text := FDQueryGetInspectionStation_Found.Text;

Any Ideas?

Comments are closed.