Returns or sets the selected text in the edit area of the ATextBox object.
Object.SelText [ = sSelText ]
The SelText property syntax has the following parts:
Name |
Type |
Description |
Object |
ATextBox |
ATextBox control |
sSelText |
String |
Returns or sets the selected text. |
Setting SelText to a new value replaces the selected text (at SelStart position) with the new string and sets SelLength to 0.
This property is available at run time only.
The following statement changes the text in the edit area to "Enter here.":
tb1.SelText="Enter here."