CONTROL GET CHECK statement

Purpose

Get the Check State of a CHECK3STATE, CHECKBOX, or OPTION button.

Syntax

CONTROL GET CHECK hDlg, id& TO lResult&

Remarks

hDlg refers to the dialog that owns the control.

id& is the unique control identifier as assigned to the control with a CONTROL ADD statement.

lResult& receives the Check State of the control as follows:

lResult&

Check State of control

0 (Zero)

Button is unchecked (unset, or cleared)

1 (One)

Button is checked (set)

2 (Two)

Button is indeterminate (grayed) (CHECK3STATE only)

Note that a grayed (indeterminate) CHECK3STATE control does not mean the control is disabled. Rather, the Check State of the control is both checked and unchecked.

See also

Dynamic Dialog Tools, CONTROL ADD CHECK3STATE, CONTROL ADD CHECKBOX, CONTROL ADD OPTION, CONTROL SET CHECK, CONTROL SET OPTION, TREEVIEW GET CHECK, TREEVIEW SET CHECK