OverviewExamples
number ListBox.GetCheckedCount ( |
Returns the number of checked items in a listbox object.
(string) The name of the listbox object.
(number) The checkbox state to search for. Only items with this checkbox state will be counted. Choose from:
CONSTANT |
VALUE |
DESCRIPTION |
BST_UNCHECKED |
0 |
Unchecked items. |
BST_CHECKED |
1 |
Checked items. |
BST_INDETERMINATE |
2 |
"Indeterminate" state items. |
(number) The number of items currently checked in the listbox object. If an error occurs or no items are checked, -1 will be returned. You can use Application.GetLastError to determine whether this action failed, and why.
When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.
See also: Related Actions