WinXListBox_GetSelection


selectedItems = WinXListBox_GetSelection (hListBox, @index[])

Gets the indecies of all the items in the list box that are currently selected

Parameter Description
hListBox The handle to the list box to get the selected items from
@index[] An array which will hold the indecies of the selected items

Returns

The number of items that were selected and have been place in the array

Remarks

You do not have to dimension the array before calling this function.

Examples

'find out how many items are selected
PRINT WinXListBox_GetSelection (hLB, @index[]);" items are selected"

Related Links

WinXAddListBox
WinXListBox_SetSelection