SelText Property (ATextBox)

Returns or sets the selected text in the edit area of the ATextBox object. 

Syntax

Object.SelText [ = sSelText ]

The SelText property syntax has the following parts:

 

Name

Type

Description

Object

ATextBox

ATextBox control

sSelText

String

Returns or sets the selected text.

Comments

Setting SelText to a new value replaces the selected text (at SelStart position) with the new string and sets SelLength to 0.

This property is available at run time only.

Example

The following statement changes the text in the edit area to "Enter here.":

tb1.SelText="Enter here."

Applies to

ATextBox

See Also

SelLength, SelStart