Darrik,
That worked very well. Thanks!
Regards,
Sam Dela Cruz
try this:
foreach (0..$count) {
$MainWin->ListView->ItemCheck($_,1);
}
:)
darrik
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] Behalf Of
>> [EMAIL PROTECTED]
>> Sent: Friday, May 16, 2003 2:46 PM
>> To: [email protected]
>> Subject: [perl-win32-gui-users] select all items in ListView
>>
>>
>> Hi,
>>
>> Is there a way to select all items in a ListView? I tried doing this
>> using this code, but it doesn't work:
>>
>> sub SelectAll_Click
>> {
>> my $count = $MainWin->ListView->Count();
>> foreach (0..$count)
>> {
>> $MainWin->ListView->ItemCheck($_);
>> }
>> }
>>
>> Regards,
>> Sam Dela Cruz
>>
>>
>> -------------------------------------------------------
>> Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
>> The only event dedicated to issues related to Linux enterprise
solutions
>> www.enterpriselinuxforum.com