listbox.selectedItems Property


index = listbox.selectedItems;
collection = listbox.selectedItems;

If the control is a single selection listbox then this property returns the index of the current selection. If the listbox allows multiple selections the property returns a collection object which contains indices of all selected items.

Example

// Print the indices of all selected items
for (i=0; i<listbox.selectedItems.count; i++)
    Env.LogInfo(listbox.selectedItems(i));
		

See also

listbox Overview | listbox.selected | collection Overview

 


© 2003 Lightweight Technologies. All rights reserved.