SetChecked - cWebCheckbox

Sets the control's value according to the psChecked and psUnchecked settings

Type: Procedure

Parameters: Boolean bChecked

ParameterDescription
bCheckedDetermines whether the checkbox is checked or not


Syntax
Procedure SetChecked Boolean bChecked

Call: Send SetChecked bChecked


Description

Sets the control's value according to the psChecked and psUnchecked settings.

By using GetChecked and SetChecked, you do not need to know the actual values of psValue, psChecked or psUnchecked.

During web app initialization (while all the Web Objects are being created), this message will set the design-time psValue, at all other times it will WebSet the client's synchronized psValue.

Sample

This sample shows how to set a cWebCheckBox control's value to the value determined by psChecked. In this case, the control's value will be set to "Y".

Object oCurrentCheckbox is a cWebCheckbox
    Set piColumnSpan to 3
    Set psCaption to "Current Items Only"
    Set piColumnIndex to 2
    Set psChecked to "Y"
    Set psUnchecked to "N"
End_Object
:
Procedure MyCustomMethod
    // check the checkbox (also WebSets the checkbox's psValue to "Y")
    Send SetChecked of oCurrentCheckbox True
End_Procedure