Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > curselection problem in list box

Thread Tools

curselection problem in list box

Posts: n/a
I am trying following code to see the selections made in current
listbox but can't see any output from print statement...

$io_dir_o = $frame2->Listbox(-selectmode => "multiple")->pack(-side =>
$io_dir_o->insert('end',qw/bidi out in od_bidi od_out analog avdd avss
vdd vss vddo corner filler/);
$sel = $io_dir_o->curselection;
print (",$sel,");

Any suggestions. I am getting a ",," as output means empty string.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
div box questions; float text around a box, fit box to image size Gnarlodious HTML 4 05-05-2010 11:30 AM
Conversion of text box as list box Neelu Java 1 01-10-2006 09:57 AM
Linking a text box and/or a list box to an Access table's column. ASP .Net 1 08-05-2005 04:17 AM
populate one list box with selected values from another list box ASP .Net 1 03-12-2005 11:29 PM
How to delete list box(text box) VRao Computer Support 3 01-24-2004 04:58 PM