SelText Property (AComboBox)

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

Syntax

Object.SelText [ = sSelText ]

The SelText property syntax has the following parts:

 

Name

Type

Description

Object

AComboBox

AComboBox control

sSelText

BString

Returns or sets the selected text.

Comments

Setting SelText to a new value replaces the selected text with the new text (at SelStart position), it also sets SelLength to 0 and replaces the selected text with the new string. This property is available at run time only.

Example

The following statement changes the text in the edit area to "Choices":

cb1.SelText="Choices"

Applies to

AComboBox

See Also

SelLength, SelStart