วันอังคารที่ 28 มกราคม พ.ศ. 2557

Delphi : how to defualt value into combobox


For example, I have a combobox with the items:

aaa
bbb
ccc

and I have a string 'aaa' is it possible to put the combobox on the item aaa ?

Combobox1.ItemIndex:= Combobox1.Items.IndexOf('aaa');

ไม่มีความคิดเห็น:

แสดงความคิดเห็น