delphi - FireMonkey ComboBox assigning Selected. Text from query -
i need allow users view selected item combobox. query provides previous choice combobox.
i hoping live bindings me through it, slow, can't use it.
i able complete similar action using comboeditbox, can't seem sort out needs done combobox.
for comboeditbox, following code works fine:
comboinspector1.text := fdquerygetinspectioninspector_1.text;
however, following code not work combobox:
combostationlocated.selected.text := fdquerygetinspectionstation_found.text;
any ideas?
i believe trying select item based on text, below select item in combobox if exists text of yourobject (whatever may be)
combostationlocated.itemindex:=combostationlocated.items.indexof(yourobject.text);
if not trying edit answer.