Solved

Help with ListView items

Posted on 2004-04-02
3
254 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
ID: 10740771
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
ID: 10740780
Make that Memo1.Lines.Add( ListView1.Items[ i ].Caption );

or.. for your TEdit:

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

Author Comment

by:sfern
ID: 10740990
Thanks for your help.

And sorry for not having more points left.

I really appriciate it.

Thanks again

SFern
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

726 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