Board index » delphi » ListView

ListView

Help,

I am trying to get the string from a selected item in a ListView. I
can't find the syntax etc to get it. I can get the first column text but
not the second column.
I am using Delphi 2.0.
Please email me at
                chris.iver...@bentley.com

as I can't get on the Newsgroups much.

Thanks,

Chris I.

 

Re:ListView


ListView.Selected.SubItems[x]

where x is the zero based column (note 0=the second column in the list view.
For the first use Caption instead of SubItems.

Chris F.

Quote
Chris Iverson wrote:
> Help,

> I am trying to get the string from a selected item in a ListView. I
> can't find the syntax etc to get it. I can get the first column text but
> not the second column.
> I am using Delphi 2.0.
> Please email me at
>                 chris.iver...@bentley.com

> as I can't get on the Newsgroups much.

> Thanks,

> Chris I.

--

Anti-Spam

Remove "AAA" from email address when replying....

Other Threads