Command Reference - List Box Object Actions
Selects one or more items in a List Box Object. This has exactly the same effect as when the user selects additional items in the list box (for example, by shift-clicking or ctrl-clicking on the items).
|
TIP |
|
|
|
|
|
You can also use this action to select no items, i.e. to deselect all of the items. This is especially useful when you want to "reset" a List Box Object in order to make brand-new selections in it. |
|
NOTE |
|
|
|
|
|
This action will trigger the On Selection Changed event for the List Box Object. |
|
Action ID: |
122 |
List Box
The name of the List Box Object.
Select
Which items you want to select in the List Box Object. Choose from:
|
All items |
- |
Select all of the items in the List Box Object. |
|
No items |
- |
Select none of the items in the List Box Object—in other words, deselect all of the items in the list. (Use this to "reset" the list box between selections.) |
|
Specific items |
- |
Select the items listed by index in the Index field. |
The items that you want to select. Depending on which option you select in Select By below, this can either be the zero-based index of the item, or the text of the item itself, or the item's associated data string. To specify multiple items, use a delimited list of indexes, item texts, or data strings.
|
NOTE |
|
|
|
|
|
You can only select multiple items in a List Box Object
if its Multiple
selection option is enabled. |
This field is only available when the Specific items option is selected above.
The delimiter that you used to separate items in the Index field. If the text in the Index field is not a delimited list, you can leave this field blank.
Select By
Whether you want to select items by their indexes, item texts, or associated data strings. (This determines how AutoPlay interprets the text in the Index field.) Choose from:
|
Index |
- |
Select each item based on a numeric index. |
|
Item text |
- |
Select each item based on the text that is visible in the List Box Object. |
|
Item data |
- |
Select each item by its associated data string. |
|
NOTE |
|
|
|
|
|
When selecting multiple items by their text (or data),
the List Box Object's Multiple
selection option determines what happens when there are multiple items
in the List Box with the same text (or data). |
|
Value |
Simple Message |
Verbose Message |
|
0 (OK) |
|
|
|
1 |
MSG_ERR_LIST_BOX_OBJECT_SELECT |
MSG_ERR_LIST_BOX_OBJECT_SELECT |
|
2 |
MSG_ERR_LIST_BOX_OBJECT_SELECT |
MSG_ERR_LIST_BOX_OBJECT_SELECT |
|
3 |
MSG_ERR_LIST_BOX_OBJECT_SELECT |
MSG_ERR_LIST_BOX_OBJECT_SELECT |
None