Value Property (ASlider)

Returns or sets the current position of the scroll box in the object.

Syntax

Object.Value [ = lValue ]

The Value property syntax has the following parts:

 

Name

Type

Description

Object

AScrollBar

AScrollBar control

lValue

Long

An integer specifying the current position of the scroll box in the object.

Comments

The valid range is from Min to Max. Setting the value outside the range will result in the Value being set to the nearest point, that is, if less than the Min, it will be set to the Min; if more than the Max, it will be set to the Max. The default value is 0.

Example

The following statement shows how to obtain the current position of the scroll box (the Value property) of the AScrollBar:

lsb1Value = sb1.Value

Applies to

AScrollBar

See Also

LargeChange, SmallChange