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


there combobox on fmx form. binded datasource (table has id-integer , speciality - varchar fields) in following manner-

object linkfillcontroltofield1: tlinkfillcontroltofield       category = 'quick bindings'       control = combobox1       track = true       filldatasource = bindsourcedb1       fillvaluefieldname = 'id'       filldisplayfieldname = 'speciality'       autofill = true       buffercount = -1       autobuffercount = false       fillexpressions = <>       fillheaderexpressions = <>       fillbreakgroups = <>     end 

it simple access value of chosen speciality (from combobox1.selected.text) can not find way access id value of selected item without sql requests. stored in tcombobox or listbox? selectedvalue stored , how (as integer)?

tm. must set livebinding link between selectedvalue of combo other control. have attached screeshoot of binding editor. label show id. enter image description here


Comments