Aldo,
One more thing I forgot to mention (sorry) is that I have not been able to
get the ItemCheck Method to work as described in the documentation (see
below).
ItemCheck(INDEX)
Gets the check state of a ListView item (valid only if the control was
created with the -checkboxes => 1 option).
This would be a handy feature. You may remember that I developed and posted
a DBGrid.pl script which uses a ListView to Display Database Data in
Row/Column format via Win32::GUI and Win32::ODBC. My plans were to try and
develop it further by adding selective data export features. I wanted the
user to be able to click the rows and columns they wanted to export, then
select and output file, and export the data to that file. I really need to
be able tell which rows and columns are checked, and then be able to access
the text from those rows and columns.
Regards,
Eric Hansen
-----Original Message-----
From: Eric C. Hansen [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 15, 1999 9:29 AM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: Getting Text out of a ListView?
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