Visual InterDev

Checkbox Script Object

See Also      Tasks      Properties      Methods      Events

Creates an HTML check box on the client browser.

Remarks

The Checkbox script object is implemented on the client browser as an HTML <INPUT> tag with the TYPE attribute set to "Checkbox".

You can write script against the onclick event for the Checkbox. The event will be processed on the scripting platform of the control.

At design time, you can use the Checkbox design-time control to create a Checkbox object. The Checkbox control has custom property pages that make it easier to control the behavior of the Checkbox object.

The Checkbox object can be used for displaying and writing Boolean data to a database. The object is bound to data by the getDataSource, setDataSource, getDataField, and setDataField methods.

Call the getChecked and setChecked properties to control the state of the check box. Call getCaption and setCaption to control the text that appears next to the check box.

To see how data is read from and stored to a database, see "Scripting Notes" in Checkbox Design-Time Control.

For information on scripting and objects, see Scripting with Design-Time Controls and Script Objects.