Home > Language Reference > Classes > AdjustableControl

Max Property

Maximum value for the control.

Syntax

Public Property Get Max() As Integer
Public Property Let Max(ByVal
iMax As Integer)

ParameterDescription
iMaxNew maximum value.

Remarks

The Max property sets the maximum value for the control. For a vertical scrollbar, it represents the value when the cursor is moved all the way to the bottom. For a horizontal scrollbar or a slider, it represents the value when the cursor is moved all the way to the right.

This value must not be less than the value of the Min property otherwise a runtime error will occur. If you want to modify the intervals of the control values, you should use the SetValues property, which modifies all the characteristics of the control at the same time.

When you modify the value of this property, the position and size of the cursor are recalculated and the control is immediately redrawn.

Note: sliders do not support negative values. If you set a negative value to this property on a control of this type, unpredicatable results can occur.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A