ListBox.GetItemData

string ListBox.GetItemData (

string ObjectName,

number Index )

Description

Returns the item data associated to a specific item in a listbox object.

Parameters

ObjectName

(string) The name of the listbox object.

Index

(number) The index (line number) whose item data you want. You can use an index of -1 to access the last item in the list.

Returns

(string) A string containing the listbox item's associated item data. If an error occurs, a blank string "" will be returned. You can use Application.GetLastError to determine whether this action failed, and why.

ResultVariable

When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.

See also: Related Actions