List Box Object - Get Selected

Gets the index (or a delimited list of indexes) of the currently selected item (or items) in a List Box Object.

Action ID:
Action Category:
Action List Syntax:

126
List Box Object
<<VARIABLE>>
= ListBoxObject[<<OBJECTNAME>>].Get Selected

Settings

List Box

Name:

The name of the List Box Object.

Variable

Store result in variable:

The name of the variable that the list of indexes will be stored in.

Delimiter:

The delimiter that will be used to separate items if more then one item is selected in the List Box Object.

Error Codes

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

1

MSG_ERR_LIST_BOX_OBJECT_GET_SELECTED

MSG_ERR_LIST_BOX_OBJECT_GET_SELECTED
MSG_ERR_OBJECT_NOT_FOUND
<<LISTNAME>>

2

MSG_ERR_LIST_BOX_OBJECT_GET_SELECTED

MSG_ERR_LIST_BOX_OBJECT_GET_SELECTED
MSG_ERR_LIST_BOX_OBJECT_UNAVAILABLE
<<LISTNAME>>

Examples

Adding items to a list box (with data)

Getting the index of the currently selected item