From Xojo Documentation

Revision as of 17:39, 17 May 2019 by Gperlman (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