Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Help with ListView items

Posted on 2004-04-02
3
Medium Priority
?
257 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
wframsay earned 172 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

618 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