c++builderc++builder-xe5tchecklistbox

TCheckListBox get count checked item


I have a simple question. How to get the count of checked item in CheckBoxListBox without using a loop?


Solution

  • TCheckListBox does not provide the option that you are looking for. A loop through its Checked[] property is required.

    If you were using Delphi, you could create a class helper to hide that loop. But class helpers are not available in C++.