From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As String )
aTextEdit.SelectedText = newStringValue
StringValue = aTextEdit.SelectedText

New in 2019r2

Supported for all project types and targets.

The currently selected text.


This example places the selected text from a TextArea into a TextField.

TextArea1.SelectionStart = 0
TextArea1.SelectonLength = 10

TextField1.Value = TextArea1.SelectedText