SelText Property

Applies To   See Also

Returns the text that the user selected in a text-entry area of a control, or returns an empty string ("") if no characters are selected. Specifies the string containing the selected text. Not available at design time; read-write at run time.

Syntax

[Form.]Control.SelText[= cString]

Settings

cString

Specifies the string containing the selected text or consists of an empty string if no characters are selected. Selected text appears shaded.

Remarks

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

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