Help for this page

Select Code to Download


  1. or download this
    # select everything
    $lb->selectionSet(0, 'end' );
    
  2. or download this
    @selected = $lb->curselection;
    unless (@selected) {
    ...
    foreach (@selected) {
      # do something with the index in $_
    }