如题
    FlatComboBox1.Items.Strings[0]:='男';
    FlatComboBox1.Items.Strings[1]:='女';可是老报错 List index out of bounds(0)

解决方案 »

  1.   

    FlatComboBox1.Items.add('男');FlatComboBox1.Items.add('女');
      

  2.   

    string  st1='hello world';
    FlatComboBox1.Items.add(st1);
      

  3.   

    如果Style为csDropDownList的话就不能FlatComboBox1.Items.add('男');须先 style := csDropDown;
    再  FlatComboBox1.Items.add('男');
    然后
      style := csDropDownList;等等
      

  4.   

    ComboBox.Items.Add('男');
    ....
    ComboBox.Index:=0;
      

  5.   

    从属性里面赋值不行么?  属性项Items~~~~~~~
      

  6.   

    FlatComboBox1.Items.add('男');FlatComboBox1.Items.add('女');
      

  7.   

    那么我想设当前的 FlatComboBox1.Items 为男,要怎么写呢?
      

  8.   

    combobox1.items.add('1')
    combobox1.items.add('2')
      

  9.   

    if not (ComboBox1.style = csDropDown) then
      ComboBox1.style := csDropDown;
    ComboBox1.items.add('string you want add!');or:假如combobox里边当前有‘男’‘女’两个值,取‘男’,则:
    ComboBox1.items.index := 0;
    or
    ComboBox1.items.text := '男';
      

  10.   

    我是说把 combobox当前的值赋给 str 字符串,要怎么写?
      

  11.   

    楼主,是不是初学
    赋值:
    Str := combobox.strins[combobox.itemindex];