TextEdit.SelStart

From Xojo Documentation

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

Supported for all project types and targets.

The position of the insertion point.

Notes

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 control, beginning with SelStart and extending for SelLength characters.

Example

This example selects the first 10 characters of TextArea1.

TextArea1.SelStart = 0
TextArea1.SelLength = 10