• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 270
  • Last Modified:

ListBox to ListView

Can some one translate?

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

how would it be with a ListView?

Thanks, SULTAN
0
SULTAN
Asked:
SULTAN
1 Solution
 
rondiCommented:
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now