ComboBox.SelLength

From Xojo Documentation

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

New in 2005r2

Supported for all project types and targets.

The number of highlighted characters.

Notes

A SelLength of 0 means an insertion point rather than a selection. A value greater than the number of characters in the ComboBox means that the selection is from SelStart to the end of the ComboBox.

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