ListBox.GetCheckedCount

number ListBox.GetCheckedCount (

string ObjectName,

number CheckState )

Description

Returns the number of checked items in a listbox object.

Parameters

ObjectName

(string) The name of the listbox object.

CheckState

(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.

Returns

(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.

ResultVariable

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