ListBox.GetItemCheck

number ListBox.GetItemCheck (

string ObjectName,

number Index )

Description

Returns the checkbox state of a specific item in a listbox object.

Parameters

ObjectName

(string) The name of the listbox object.

Index

(number) The index (line number) of the item whose checkbox state you want. You can use an index of -1 to access the last item in the list.

Returns

(number) A number representing the checkbox state of the item. If an error occurs, the value -1 (LB_ERROR) is returned.

CONSTANT

VALUE

DESCRIPTION

BST_UNCHECKED

0

The item's checkbox is unchecked.

BST_CHECKED

1

The item's checkbox is checked.

BST_INDETERMINATE

2

The item's checkbox is in an "indeterminate" state. Usually used to indicate a "mix" of checked and unchecked items.

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