Aldo, some of us are having a problem figuring out how to get text out of a
ListView. A workaround would be to store the text in an array as the
ListView is loaded. But if the ListView has thousands of items (say...as
when you load a Database SQL Result Set to it), then this is a lot of memory
overhead, and may not be practical. We know how to change the text in a
ListView, but not how to "GET" the text from a ListView (Selected Item of
Not!). Is there such a way? And if not, are there any plans to add this
feature soon?

It is possible to get the text from TreeViews and Listboxes. There are
Methods available with Win32-GUI to do this, but not for ListViews that we
are aware of. You provided a nice trick for me using SendMessage() to where
I can tell the Selected Item in a ListView outside an Item Click Event. Can
SendMessage() also help us get the text from a ListView?

Regards,
Eric Hansen

Reply via email to