Method XbpSpinButton():setNumLimits() Foundation

Defines the range of valid values for the spinbutton.

Syntax
:setNumLimits( [<nMin>], [<nMax>] ) --> aOldLimits
Parameters
<nMin>
<nMin> is an integer specifying the lower limit of the range of valid values for the spinbutton. This parameter is optional. If neither <nMin> nor <nMax> are specified, :setNumLimits() returns the current limits.
<nMax>
<nMax> is an integer specifying the upper limit of the range of valid values for the spinbutton. This parameter is optional. If neither <nMin> nor <nMax> are specified, :setNumLimits() returns the current limits.
Return

This method returns an array containing two elements. These elements contain the previously set limits for the valid range.

Description

The :setNumLimits() method defines the valid range for numeric values of the spinbutton. If the current value of the spinbutton is outside the newly defined range at the time this method is executed, the value is adjusted to conform with the new minimum and maximum. The upper and lower boundaries may include negative values. The predefined range is 0 through 99999.

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.