I.T. Discussion Community!
-Collapse +Expand
Delphi
Search Delphi Group:

Advanced
-Collapse +Expand Delphi To/From
To/FromCODEGuides
-Collapse +Expand Delphi Store
PRESTWOODSTORE

Prestwood eMagazine

July Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyPascal and Delphi Coding BoardDelphi VCL Topic   Print This     

Needa hand with TListView ...

Needa hand with TListView ... in Delphi VCL topic (part of our Pascal and Delphi Coding group).

Quick Search: TListView   Needa hand   Needa hand TListView  
kata.ro
 (Inactive)
Romania
I have a problem using the TTListView ... maybe someone can help me ...
So, let's start. Les't say I have a ListView on my form.The listView has 5 items an 9 colums... I view the list as report.How can I get the information from the item 3 and column 5 into a TEdit ??
Thnks in advance.
 Posted 18 years ago (Thread Starter)
Comment Quote
About kata.ro -Collapse +Expand
Visit Profile
Inactive member.
Member does not subscribe to this thread.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #6222, 2 replies
Thread Started 5/14/2002 11:52:00 PM
View Counter=2448
Last Reply Posted 10/22/2002 1:05:00 PM)
Location=Romania  
Joined=18 years ago   MB Posts=2  
Angel
 (Inactive)
England
Im assuming you are allowing the user to select an item in your listview using the mouse, in which case the following would work

var
X : Integer;
begin
X := ListView1.Items.IndexOf(ListView1.ItemFocused);
Edit1.Text := Listview1.Items[X].Caption;
end;

If you always wanted the same item selecting then you would simply have to find out its index number and replace the integer X with the corresponding index in the second line of code.
 Posted 18 years ago
Comment Quote
About Angel -Collapse +Expand
Visit Profile
Inactive member.
Member does not subscribe to this thread.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #6226 (Level 1.1)  Reply to 6222
Thread Started 5/15/2002 1:43:00 AM
View Counter=2
Location=England  
Joined=19 years ago   MB Posts=199  
Most Recent Post
mcdigital
-- USA
ShowMessage(ListView1.Items[3].SubItems[9]);

This Will print what you need!
I guess.. Big Grin! Eek!
 Posted 18 years ago
Comment Quote
About mcdigital -Collapse +Expand
Visit Profile
Membership pending.
Member subscribes to this thread but email is NOT VERIFIED.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #8028 (Level 1.2)  Reply to 6222
Reply Posted 10/22/2002 1:05:00 PM
Location=-- USA 
Joined=18 years ago   MB Posts=2  

Revive Thread!

Add a comment to revive this old thread and make this archived thread more useful.

Write a Comment...
Full Editor
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1121A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #6222 Counter
2448
Since 4/2/2008

Follow PrestwoodBoards on: 


©1995-2020 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech