Property Integer Select_Count
| Read Access: | Get Select_Count to IntegerVariable |
The select_count property maintains the total number of selected items in the menu. As items are selected or deselected the select_count property is updated.
The select_count property is typically used with multi_select menus and lists. The user may select zero, one, or multiple items and the program can process them. To select more than one item, the Select_Mode property should be set to Multi_Select. Use the select_count property to determine if users have selected any items and if so, how many.
Get Select_Count To iSelectedItems
If (iSelectedItems > 0) Begin
Get Item_Count To iItems
Decrement iItems
While (iItems >= 0)
Get Select_State Item iItems To bSelected
If (bSelected) Begin
// Do whatever you want to do with the selected item
End
Decrement iItems
Loop
End