Read data from ComboBox1 lazarus / 43-Android ---------------------------------------------------------------------- zeljkoc · 2012-12-02 18:38 How  read data from ComboBox1 example Label1.Caption: = ComboBox1.Caption or Label1.Caption := ComboBox1.Text android read ComboBox1 ---------------------------------------------------------------------- stab · 2012-12-04 06:25 Hi, Do like this: Label1.Caption: = ComboBox1.Items[ComboBox1.ItemIndex]; /stab ---------------------------------------------------------------------- zeljkoc · 2012-12-04 16:31 read ComboBox1.ItemIndex exit and error lazarus 1.1 date: 2012-11-26 FPC version 2.7.1 SVN revision 39375 ---------------------------------------------------------------------- User137 · 2012-12-04 16:42 ComboBox1.Text is correct way. If you go for ComboBox1.ItemIndex, you need to check first that it is not -1. Because ComboBox1.Items[-1] will result bad error. If Combobox value is different than any item in its list, then Itemindex may be -1. You can also select it from the Object properties window, to give a reasonable start value. So this way only really works if typing to ComboBox is not allowed (check style properties). ---------------------------------------------------------------------- zeljkoc · 2012-12-04 17:11 work Windows not work android procedure TForm1.Button3Click(Sender: TObject); begin   if ComboBox1.ItemIndex <> -1 then     Label1.Caption := ComboBox1.Items[ComboBox1.ItemIndex]; end; ComboBox1.ItemIndex = -1 component:  DBLookupComboBox1: TDBLookupComboBox; not result DataSource, DataField   not add table Windows work not work android