Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Tlist get selected

by bbfu (Curate)
on Sep 05, 2003 at 23:02 UTC ( [id://289382]=note: print w/replies, xml ) Need Help??


in reply to Tlist get selected

What do you mean by "get selected item"? What do you want to do with the result?

I assume this is related to your previous question. If you want to know what directory or file the user clicked on, the @sel array in your code in this post should contain the file or directory. Try printing that directly to see what it contains, as in my example code in my reply to your other thread.

If you're wanting to set or retrieve options associated with those items in the TList, you can use $tl->entryconfigure($sel[0], ...) and $tl->entrycget($sel[0], ...), respectively.

bbfu
Black flowers blossom
Fearless on my breath

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://289382]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-03-29 13:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found