Solved

Help with ListView items

Posted on 2004-04-02
3
249 Views
Last Modified: 2010-04-05
Hi there,

I would first like to say that i'm giving you all the points that i'm got left, so i understand if i don't get a response.

I have the following code in a ListView:

var
I, tmp: Integer;

for I:= 0 to ListView1.Items.Count - 1 do
begin
 tmp:=  StrToInt(ListView1.Items[I].Caption);
 case tmp of
  0:begin //do something here end;
  1:begin //do something here end;
  2:begin //do something here end;
 end;
 end;

What i need to know it how do copy each field the it reads while looping to a Tmemo or TEdit ect...

So, if the first line contains whenever, the i need to copy the items or subitems somewhere else.

In other word to be able to copy them somewhere else.

I really need this, but i understand that i haven't got much points left, so i understand if i don't get help.
0
Comment
Question by:sfern
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
wframsay earned 43 total points
Comment Utility
You wish to copy what from the ListView?  The Caption for each item?

TMemo.Add( ListView1.Items[ i ].Caption );
0
 
LVL 1

Expert Comment

by:wframsay
Comment Utility
Make that Memo1.Lines.Add( ListView1.Items[ i ].Caption );

or.. for your TEdit:

Edit1.Caption :=  ListView1.Items[ i ].Caption;
0
 

Author Comment

by:sfern
Comment Utility
Thanks for your help.

And sorry for not having more points left.

I really appriciate it.

Thanks again

SFern
0

Featured Post

What Security Threats Are You Missing?

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
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: …

728 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

9 Experts available now in Live!

Get 1:1 Help Now