Jump to content

Listbox: Add and Set Checkbox in code ?


andyhill

Recommended Posts

ShowCheckBoxes:= True;      

for j:= 0 to 100 do begin
  i:= lbOutlineSpeakers.Items.Add(UniMainModule.MyQuery1.FieldByName('FullName').AsString+' - '+
                                  UniMainModule.MyQuery1.FieldByName('City').AsString);
  lbOutlineSpeakers.Selected[i]:= True;
end;

This only sets once on the first Item, all other lbOutlineSpeakers.Selected[i]:= True; FAILS TO SET ???

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...