Clipboard.SetText

From Xojo Documentation

Revision as of 22:43, 16 May 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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