B
boole
This function supposedly returns an array:
[quote http://perl-win32-gui.sourceforge.net/cgi-bin/docs.cgi?doc=listbox#getselitems]
GetSelItems()
Returns an array containing the zero-based indexes of the selected
items in a multiple selection Listbox.
[/quote]
I want to get the length of that array without storing the result in
an array variable.
This is what I found:
scalar($win->lbMacros1->GetSelItems()); # returns the last VALUE (yes,
VALUE) of the array, not the length like with normal arrays.
@array = $win->lbMacros1->GetSelItems();
scalar(@array); # returns
the length of the array
I want the value of the second method, without storing the array
first.
I've tried alot including {}, [], () and eval(), but I can't figure
this one out.
Please help when you have time.
[quote http://perl-win32-gui.sourceforge.net/cgi-bin/docs.cgi?doc=listbox#getselitems]
GetSelItems()
Returns an array containing the zero-based indexes of the selected
items in a multiple selection Listbox.
[/quote]
I want to get the length of that array without storing the result in
an array variable.
This is what I found:
scalar($win->lbMacros1->GetSelItems()); # returns the last VALUE (yes,
VALUE) of the array, not the length like with normal arrays.
@array = $win->lbMacros1->GetSelItems();
scalar(@array); # returns
the length of the array
I want the value of the second method, without storing the array
first.
I've tried alot including {}, [], () and eval(), but I can't figure
this one out.
Please help when you have time.