Value Property (ASwitch)

Returns or sets the state of the object to be either Off or On.

Syntax

Object.Value [ = enASwitchValue ]

The Value property syntax has the following parts:

 

Name

Type

Description

Object

ASwitch

ASwitch control

enASwitchValue

enumASwitchValue

An integer specifying the state of the object to be either Off or On.

Where

enumASwitchValue can be one of the following:

 

Name

Value

Description

aswtValueOff

0 *

Off

aswtValueOn

1

On

Comments

 

Example

The following statement changes the ASwitch Value to be On:

sw1.Style=aswtValueOn

Applies to

ASwitch

See Also

AButton