Class
ListBox and
ListView.
Action
Returns the text of each selected item in the multi-selection or extend-selection list, list box, or listview.
Availability
This functionality is supported only if you are using the Classic Agent.
Syntax
lsText = list.GetMultiSelText( )
Variable
|
Description
|
lsText
|
The text of each selected item.
LIST OF STRING.
|
Notes
- If the selected item is graphical or contains no text,
GetMultiSelText returns a pound sign (#) followed by the index number of the item. If no items are selected, the function returns an empty list. You can set the
OPT_GET_MULTITEXT_KEEP_EMPTY_LINES agent option to
FALSE to remove empty lines within the selected text.
- The
GetMultiSelText method is not available in the
ListViewEx class, which is the equivalent of the
ListView class on the Open Agent. To achieve the same functionality for a listview on the Open Agent, use the
SelectedItems property of the
ListViewEx class.
Example
LIST OF STRING lsSelected
lsSelected = DialogBox1.Elements.GetMultiSelText()