Erick J. Bourgeois wrote:
[...]
When Button is pressed it always falls through the if
statement. Even in the case of no selection it falls through
because @index[0], in this case, is undef. I know undef is
the same as 0, but how could I get around this?
UNDEF IS NOT THE SAME AS 0! this is,
Sorry to bother the list again, but Aldo, checking it's
undefness with defined does not work either, it falls
through not matter what. I tried putting print
$index[0]\n; to see it's value and indeed it is undef (ie.
it did not print anything), so why does it pass the if
statement?
erick
never
Erick J. Bourgeois wrote:
Sorry to bother the list again, but Aldo, checking it's
undefness with defined does not work either, it falls
through not matter what. I tried putting print
$index[0]\n; to see it's value and indeed it is undef (ie.
it did not print anything), so why does it pass the
Aldo, can I correct it myself and compile it with DJGCC?
erick
never stop questioning
www.jeb.ca
Aldo, I had a look at the GUI.XS (Version: 0.0.558) and I
found the following lines (at line: 9930~) for SelectedItems
return:
scount = ListView_GetSelectedCount(handle);
if(scount 0) {
index = -1;
tcount = 0;
EXTEND(SP, scount);
index = ListView_GetNextItem(handle, index,
Erick J. Bourgeois wrote:
Aldo, can I correct it myself and compile it with DJGCC?
I hope so :-)
I could not compile it with cygwin's gcc, but I'll be very
happy to know how it goes with djgcc. but please post build
reports and pleas for help on the Perl-Win32-GUI-Hackers
mailing list, since
Erick J. Bourgeois wrote:
XSRETURN_NO; #Is the problem here?#
exxxactly, should be
XSRETURN_UNDEF;
instead.
cheers,
Aldo
__END__
$_=q,just perl,,s, , another ,,s,$, hacker,,print;
I'm trying to test if any items have been selected in a
listview with a button event and I have used the -singlesel
option on the listview. So, therefore, if the user clicks
the button without selecting anything, I would like to have
a MsgBox, else take the value of the the choosen selection
and
Well, I don't know if this will actually fix your
problem, but you should definitely be using
$index[0] instead of @index[0].
Just my 2 cents,
jb
--- Erick J. Bourgeois [EMAIL PROTECTED] wrote:
I'm trying to test if any items have been selected
in a
listview with a button event and I have
(...);
}
Any more ideas are more than welcome.
erick
never stop questioning
www.jeb.ca
- Original Message -
From: Jeremy Blonde [EMAIL PROTECTED]
To: perl-win32-gui-users@lists.sourceforge.net
Sent: Wednesday, February 14, 2001 11:04 PM
Subject: Re: [perl-win32-gui-users] SelectedItems
10 matches
Mail list logo