$did(6,$did(6).sel).text

Returns the text from the selected line in item #6. If you want to return other lines, use something like this:

$did(6,17).text <- returns line 17

If you have a multisel listbox, use something like this:

$did(6,$did(6,8).sel).text <- returns the 8th selected line

-genius_at_work