From Xojo Documentation

Revision as of 21:00, 22 January 2019 by PLefebvre (talk | contribs)

Property (As Integer )
aComboBox.SelStart = newIntegerValue
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.


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