Solved

ListBox to ListView

Posted on 2001-09-13
1
264 Views
Last Modified: 2010-04-06
Can some one translate?

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

how would it be with a ListView?

Thanks, SULTAN
0
Comment
Question by:SULTAN
1 Comment
 
LVL 3

Accepted Solution

by:
rondi earned 10 total points
ID: 6481587
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question