Solved

ListBox to ListView

Posted on 2001-09-13
1
258 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now