S sdenf Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-04 #1 怎么才可以知道当前COMBOBOX。ITEMS。TEXT是第几个ITEM 总ITEMS是用COUNT,要当前的呢
Y yeath Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-04 #2 用这个就行了。 showmessage(inttostr(ComboBox1.Items.IndexOf(combobox1.Text)));
苦 苦中求乐 Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-04 #4 不用管Text阿,这样就行阿! showmessage(inttostr(ComboBox1.Items.ItemIndex));
W wr960204 Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-04 #5 ComboBox1.ItemIndex 就是当前的索引
S sdenf Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-04 #6 showmessage(inttostr(ComboBox1.Items.ItemIndex)); 不好意思,这个不行
Y yczjs Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-04 #8 ShowMessage(IntTostr(ComboBox1.ItemIndex)); ShowMessage(ComboBox1.Text);
J jb99334 Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-04 #9 combobox1.itemindex combobox1.text
S seagod007 Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-05 #10 多看看帮助就知道了,ComboBox1.ItemIndex就是当前的这个ITEM。
S seaerwang Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-19 #13 combobox记数是从0开试的 当combobox的items为空时,返回-1. 你可以在procedure TForm.ComboBoxChange(Sender: TObject);中写 label.Caption:=inttostr(combobox.itemindex); 那就回返回当前item
combobox记数是从0开试的 当combobox的items为空时,返回-1. 你可以在procedure TForm.ComboBoxChange(Sender: TObject);中写 label.Caption:=inttostr(combobox.itemindex); 那就回返回当前item