SelStart Property

Applies To   See Also

Returns the starting point of a text selection made by the user in a text-entry area of a control, or indicates the position of the insertion point if no text is selected. Also, specifies the starting point of a text selection in a text-entry area of a control. Not available at design time; read-write at run time.

Syntax

[Form.]Control.SelStart[= nStart]

Settings

nStart

Specifies the starting point of text selected or indicates the position of the insertion point if no text is selected. Selected text appears shaded. The valid range of settings is 0 to the total number of characters in the edit area of the control.

Remarks

Use this property with the SelLength and SelText properties for tasks such as:

When working with these properties, be aware of the following behaviors: