procedure TForm1.SpeedButton2Click(Sender: TObject);
var i:integer;
begin
for i :=0 to checklistbox1.Items.count-1 do
begin
checklistbox1.Checked[i] := true ;
if checklistbox1.Checked[i]=true then //注意这句
begin
checklistbox1.Items.Delete(i);
end;
end;
end;
本文来自博客园,作者:del88,转载请注明原文链接:https://www.cnblogs.com/del88/archive/2011/12/10/2283361.html