ListBox to ListView

Can some one translate?

(ListBox.items.objects[ListBox.itemindex])

how would it be with a ListView?

Thanks, SULTAN
SULTANAsked:
Who is Participating?
 
rondiConnect With a Mentor Commented:
When assigning objects, instead of using
  ListBox.Items.Objects[i] := SomeObjectVar;

you would use
  ListView1.Items[i].Data := @SomeObjectVar;

and then reference the objects using
  TSomeObject(ListView1.Selected.Data^);
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.