Is CheckBox's Item Enable or Disable ?
Q: I want to be able to do :
for i := 0 to numberItems do
begin
if checklistbox.checked[i] = true then
// do something..
end;
but I cant find a property for the number of items in a Checklistbox !!
Answer :
var
i: integer;
begin
for i := 0 to CheckListBox1.Items.Count - 1 do
begin
if CheckListBox1.ItemEnabled[i] then
begin
// do something..
end;
end;
end;
Author: Oktay Sancak



0 Comments:
Post a Comment
<< Home