Returns or sets the state of the object to be either Off or On.
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. |
enumASwitchValue can be one of the following:
Name |
Value |
Description |
aswtValueOff |
0 * |
Off |
aswtValueOn |
1 |
On |
The following statement changes the ASwitch Value to be On:
sw1.Style=aswtValueOn