Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

working with listview component

Status
Not open for further replies.

samibami

Programmer
Oct 12, 2003
28
IL
i use a listview component on my form (vreport-meaning, a table).i add data into it,say, ip addresses.i want to access a specific data entry in the list.how do i do that?

i know i have to declare " TListItem *ListIt" to add strings,but how do i access them afterwards?

10x very much,
bcb5 user
 
Let Borland Help become your best friend. Drop the TListView item on the form, select it, then push F1. Click on the "Properties" link to see properties for it. Down a little way, you will see "Items". Click on that. Click on "TListItems" in the new window that opens. Click on "Properties" for that one. Then click on "Item" in that list. Now, depending on which version you have, you'll see a bug, where the "TListItem" is not hyperlinked to anything in the window on the right. Click "Help Topics" and type in "TListItem" if you need more information, but I think you know that one pretty well already. So in short:

MyListView->Items->Item[0]->WhateverProperty...

Good luck,
Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top