SelLength Property (ATextBox)

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

Syntax

Object.SelLength [ = lSelLength ]

The SelLength property syntax has the following parts:

 

Name

Type

Description

Object

ATextBox

ATextBox control

lSelLength

Long

An integer specifying the number of selected character in the edit area of the object.

Comments

The valid range of settings is 0 to the text length. The default is zero, which means nothing is selected.

This property is available at run time only.

Example

The following statement changes the number of characters in the edit area that can be selected to be sixteen:

tb1.SelLength=16

Applies to

ATextBox

See Also

SelStart, SelText