perl-win32-gui  

[perl-win32-gui] SelectedItems() returns 0 if first item is seleted and if none areselected. (fwd)

MattA
Tue, 28 Nov 2000 07:55:38 -0800


Hi.. I have a problem with the listbox widget. There doesn't appear to be
a way to tell when the first item of a listbox is selected because it's
index is 0. But in perl 0 also means undefined and if nothing is selected
SelectedItems returns undefined ie: 0 so there's no way to tell whether
the first item is selected or not. :( Can anyone think of a hack to get
around this?

MattA.