Returns or sets the selected text in the edit area of the object.
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. |
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.
The following statement changes the text in the edit area to "Choices":
cb1.SelText="Choices"