Each item of a check list box control can be in the checked, unchecked or indeterminate (grayed) state. Use the
wItemState property to get or set the state of the specified item.
|TestObj||A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section|
The property is applied to the following objects:
To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.
The property has the following parameter:
Specifies the desired item. You can enter the item’s index (from 0) or its caption. The caption can contain asterisk (*) or question mark (?) wildcards or regular expressions. The asterisk (*) corresponds to a string of any length (including an empty string), the question mark corresponds to any single character (including none). To specify more complicated parts of a caption, use regular expressions.
The caption can be case-sensitive or case-insensitive depending on the value of the Use case-sensitive parameters project setting.
One of the following constants that specify the item’s state:
||The item is unchecked.|
||The item is checked.|
||The item is switched to grayed (indeterminate state).|
Note that the items of the check list box may be in the indeterminate (grayed) state only if the list box’s
AllowGrayed property is True. Otherwise, the items does not support the indeterminate state. In this case, if you pass
cbGrayed to the State parameter,
CheckItem will fail and post an error message to the test log.