OnText Property (ASwitch)

Returns or sets the text associated with the On position of the object while in the On state.

Syntax

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.

Comments

The default is "On". This property is programmable but at run-time is read-only.

Example

The following statement changes the text for the On state to "Ready":

sw1.OnText="Ready"

Applies to

ASwitch

See Also

OffText, OnTextColor, OnTextFont, OnTextHeight, OnTextLeft, OnTextTop, OnTextWidth