Clipboard.SetText

From Xojo Documentation

Method

Clipboard.SetText(Text As String)

Supported for all project types and targets.

Sets the Clipboard to the text passed.

Sample Code

This code is in the Action event of a button. It puts the text in a TextField on the Clipboard.

Dim c As Clipboard

// create a new instance of the clipboard
c = New Clipboard

// set the text
c.SetText(TextField1.Text)

// close it
c.Close