本文整理自网络,侵删。
for i := CheckListBox1.Items.Count-1 downto 0 do //从后面往前面删 begin if CheckListBox1.Checked[i] then // 是否选中 begin CheckListBox1.Items.Delete(i); end; end;
获取选中的名称: clbCol.Items[clbCol.ItemIndex]
相关阅读 >>
Delphi 结构体的使用、tbitmap和tmemorystream的转换
Delphi idhttp returning http 1.1/500 显示错误内容
Delphi createthread的线程传参数(小熊论坛的)
更多相关阅读请进入《Delphi》频道 >>