Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

index of selected item from listbox?

Status
Not open for further replies.

fabien

Technical User
Sep 25, 2001
299
AU
Hi!


How can I get the index value of the item that is currently selected in a ListBox widget?

Thanks,
 
I found the solution myself using:

pathname curselection

 
Be careful that this command returns a list of indices.
This only matters if
Code:
-selectmode
option value is multiple or extended.

ulis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top