ComboBox.SelStart

From Xojo Documentation

Revision as of 19:05, 3 September 2020 by THill (talk | contribs) (Text replacement - "{{Deprecated|" to "{{DeprecatedItem|")

Property (As Integer )
aComboBox.SelStart = newIntegerValue
or
IntegerValue = aComboBox.SelStart

New in 2005r2

Supported for all project types and targets.

The position of the insertion point. A value of zero means that the insertion point is before the first character.

Notes

Use SelStart to set the position of the insertion point in the text. Use SelStart in conjunction with SelLength to select a portion of the text in the ComboBox, beginning with SelStart and extending for SelLength characters.

Sample Code

This code selects the second through the fourth characters. After the code is executed, those characters are highlighted in the ComboBox.

ComboBox1.SelStart = 1
ComboBox1.SelLength = 3