SelText Property
This property returns or sets the string containing the currently selected text within the combo's editing window.
TDBCombo.SelText= string
Read/Write at run time. Not available at design time.
Property applies to TDBCombo control.
If no text is currently selected, then this property returns an empty string.
Setting SelText to a new value sets SelLength to 0 and replaces the selected text with the new string.
Use the SelText property in combination with the SelStart and SelLength properties to set the insertion point, establish an insertion range, select substrings, or clear text. These properties are useful for implementing copy, cut, and paste operations that transfer string data to and from the clipboard.
See Also