SelStart Property (ATextBox)

Returns or sets the starting point of the selected text and the insertion point in the edit area of the ATextBox object. 

Syntax

Object.SelStart [ = lSelStart ]

The SelStart property syntax has the following parts:

 

Name

Type

Description

Object

ATextBox

ATextBox control

lSelStart

Long

An integer specifying the starting point of the selected text and the insertion point 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 starting point of the selected text and the insertion point to be one:

tb1.SelStart=1

Applies to

ATextBox

See Also

SelLength, SelText