ListView_SelectionGet()

Examples


The ListView_SelectionGet() function retrieves the item index of the specified item in the selection.

Syntax

ListView_SelectionGet(list_view_field {, offset})

Parameters

list_view_field – The list view field for which the selection count is being returned.

offset – An optional long integer that specifies which item in the selection will be returned. The value 1 indicates the first item in the selection, 2 the second item, and so on. If this parameter is not included, the first item in the selection is returned.

This parameter should be used only for list view fields that have the MultiSel property set to true.


Return value

A long integer containing the item index of the specified item in the selection.


Documentation Feedback