GetRange Function (Scale ScrollBar)

Class

Scale and ScrollBar.

Action

Returns the minimum and maximum positions to which the scroll bar or scale can be set.

Syntax

rMinMax = object.GetRange()
Variable Description
rMinMax The range of the object. SBRANGE or SCLRANGE.

Notes

GetRange returns the internal numeric values of the minimum and maximum positions. The return value is a record of type SBRANGE for scroll bars or SCLRANGE for scales.

The record has these two fields:

Field Description
Min The minimum position. INTEGER for scroll bars, NUMBER for scales.
Max The maximum position. INTEGER for scroll bars, NUMBER for scales.

Example

SBRANGE sbRange
sbRange = Open.FilesSB.GetRange()
Open.Files.Select(sbRange.iMin)
Open.Files.Select(sbRange.iMax)