ISCheckBox.State

Description

The possible states of the specified checkbox.

0 cbUnchecked
1 cbChecked
2 cbGrayed

Syntax

object.State

Part Attribute Type Description
object Required
The object always implements the ISCheckBox interface

Return Value

int

Example

Display some information about the specified checkbox, including its possible state.

Dim aControl
Dim aControlInfo

Set aControl = Form.Controls_("chkMV")
 
aControlInfo =_
  "Caption: " & aControl.Caption & vbNewLine &_ 
  "ShortName: " & aControl.ShortName & vbNewLine &_
  "State: " & aControl.State
  
Profile.MsgBox(aControlInfo)  
Note: This macro should be executed in any event handler of the form control.

In Profile Client v8 on User Interface State can be found in Maintain > Templates > Health Record Collection Templates > Open the selected form template > Open form editor > Object Inspector > Select the checkbox in the controls tree > State.

Version information

Added in v7.8.0