Returns the text string of an item in a Listbox object.
Syntax
object.getText([nIndex])
Parameters
object
A Listbox script object.
nIndex
Index of an item in the zero-based list. If left null, the index defaults to the currently selected item. The index of the currently selected item is equivalent to the value of the selectedIndex property.
Example
In the following script, getText passes a string from the fifth item of the list box to a variable named strItem.
strItem = ListBox1.getText(4);