Returns or sets the current position of the scroll box in the object.
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. |
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.
The following statement shows how to obtain the current position of the scroll box (the Value property) of the AScrollBar:
lsb1Value = sb1.Value