get-selections in list-box%

Returns a list of indices for all currently selected items. List box items are indexed from 0.

For single-selection lists, the result is always either null or a list containing one number.