Classes

Method XbpCheckBox():setData() Foundation

Sets the current value or state of the checkbox.

Syntax
:setData( [<lCheck>] ) --> lOldCheck
Parameters
<lCheck>
<lCheck> is a logical value defining the new state of the checkbox. The value .T. (true) defines the box as "selected" and .F. (false) defines it as "not selected".
Return

This method returns the value stored in the edit buffer of the checkbox before the :setData() method is called.

Description

The :setData() method changes the value for the current state of the checkbox. The parameter <lCheck> does not need to be included when a data code block is contained in the instance variable :dataLink. If :setData() is called without a parameter, the data code block in :dataLink is evaluated and its return value is used as <lCheck> (see DataRef()). If a code block is not contained in :dataLink, a value must be specified for <lCheck>.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.