if 字段=1 then checklistbox.check:=true else checklistbox.check:=false;来看看下面的帖子,看了也许会浪费你半分钟时间,但不看相信如果和你有关,你一定后悔 http://expert.csdn.net/Expert/topic/1546/1546651.xml?temp=.5070154
var i:Integer;for i:=0 to CheckListBox1.Items.Count do begin if(CheckListBox1.Checked[i]) then CheckListBox1.Items.Strings[i]; //这就是你所需要的。 end;
同意 gong_hui2000(gong_hui2000)
var i:integer; begin for i:=0 to CheckListBox1.Items.Count-1 do begin if checklistbox1.Checked[i] then // showmessage(checklistbox1.) ; showmessage(CheckListBox1.Items.Strings[i]); end; end;
http://expert.csdn.net/Expert/topic/1546/1546651.xml?temp=.5070154
为1则[Index] := True;
http://expert.csdn.net/Expert/topic/1546/1546651.xml?temp=.5070154
i:Integer;for i:=0 to CheckListBox1.Items.Count do begin
if(CheckListBox1.Checked[i]) then
CheckListBox1.Items.Strings[i]; //这就是你所需要的。
end;
i:integer;
begin
for i:=0 to CheckListBox1.Items.Count-1 do
begin
if checklistbox1.Checked[i] then
// showmessage(checklistbox1.) ;
showmessage(CheckListBox1.Items.Strings[i]);
end;
end;