home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


Book HomeMastering Perl/TkSearch this book

7.12. Translating Indexes

The index method translates an index specification (such as "active") into the numerical equivalent. For instance, if the Listbox contains 12 items, $index = $lb->index("end") sets the variable $index to 11. (Remember the first item in a Listbox is at index 0.)



Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.