Max Property (AScrollBar)

Returns or sets the maximum scroll bar position in the object.

Syntax

Object.Max [ = lMax ]

The Max property syntax has the following parts:

 

Name

Type

Description

Object

AScrollBar

AScrollBar control

lMax

Long

An integer specifying the maximum scroll bar position in the object.

Comments

The value can be any 32-bit signed number. The difference between Max and Min must not be greater than 0x7FFFFFFF. The value of the Max property can be set to a smaller number than min. The default value is 100.

Example

The following statement shows how to obtain the maximum scroll bar position of the AScrollBar:

lsb1Max = sb1.Max

Applies to

AScrollBar

See Also

Min, Value