Difference between revisions of "ComboBox.SelStart"

From Xojo Documentation

m (Text replacement - "{{DeprecatedItemItem|" to "{{DeprecatedItem|")
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{DeprecatedItem|version=2019r2|replacement=[[ComboBox.SelectionStart]]}}
 
{{PropertyBox
 
{{PropertyBox
 
| name=SelStart
 
| name=SelStart

Latest revision as of 19:07, 3 September 2020

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