Returns or sets the text associated with the On position of the object while in the On state.
Object.OnText [ = sOnText ]
The OnText property syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
ASwitch |
ASwitch control |
|
sOnText |
String |
Returns or sets the text associated with the On position of the control while in the On state. |
The default is "On". This property is programmable but at run-time is read-only.
The following statement changes the text for the On state to "Ready":
sw1.OnText="Ready"
OffText, OnTextColor, OnTextFont, OnTextHeight, OnTextLeft, OnTextTop, OnTextWidth