Method XbpRadioButton():setData() Foundation

Sets the current value or state of the radiobutton.

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

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

Description

The :setData() method changes the value for the current state of the radiobutton. 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.