2

I'm using a list of checkboxes on a form where they are actually TCheckListBox components.

I can use this method to show the clicked item:

ShowMessage(MyCheckBoxes.GetSelectedText);

In addition to the visible text in each row, I'd like to store an ID number.

Is this possible to do this and if so please share a doc or example.

Thanks!

I'm using Lazarus + Ubuntu

itsols
  • 5,406
  • 7
  • 51
  • 95

1 Answers1

1

The array with items is called "items". The texts are in items[i] and you can store additional objects in items.objects[i]

Marco van de Voort
  • 25,628
  • 5
  • 56
  • 89