TextEdit.Copy

From Xojo Documentation

Method

TextEdit.Copy()

Supported for all project types and targets.

Copies the selected text in the TextArea to the Clipboard, including the styled text information.

Example

This example copies the selected text and places it on the Clipboard.

TextArea1.SelStart = 0
TextArea1.SelLength = 10
TextArea1.Copy