怎样取得Tchecklistbox控件中所选内容的值(多选)?
    

解决方案 »

  1.   

    Tchecklistbox还是Tcheckbox
    Tcheckbox的话对每个Tcheckbox的Checked属性进行判断即可
      

  2.   

    用 for i:=1 to checklistbox1.Count    遍历有几个复选框。
    然后再用数组赋值;
      

  3.   

    哦,忘了补丁一句: 用数组赋给 checklistbox1.Items.Strings[i];
      

  4.   

    在循环内还要用 if checklistbox1.Checked=true
      

  5.   

    var i:integer;
    begin
      for  i:=0  to CheckListBox1.Items.Count-1  do
      begin
        if CheckListBox1.Checked[i] then  showmessage(CheckListBox1.Items.Strings[i]);
      end;end;