checklistbox.checked[i];//你选中与否的item

解决方案 »

  1.   

    我只是想取道我选中内容的字符串,比如我有5个item,我只选中了2个,我只想得到这我选中的字符串就可以了
      

  2.   

    CheckListBox1.Checked[CheckListBox1.ItemIndex]为True,表示已选中;
    CheckListBox1.Items[CheckListBox1.ItemIndex]就是选中的Items值
      

  3.   

    For i:=o to CheckListBox1.Items.Count-1 do
       begin
            if CheckListbox1.Checked[i] then
               
                
                 //处理选中项   end;
      

  4.   

    Var
       i,j:Integer;
       CheckArr:Array[0..128] of Strign;...j:=0;For i:=0 to CheckListBox1.Items.Count-1 do
       begin
            if CheckListbox1.Checked[i] then
              begin
                 CheckArr[j]:=CheckListbox1.Items[i];
                 Inc(j);
              end;
                
       end;执行完成后,选中项的字符就保存在数组CheckArr中了。