Method
Clipboard.SetText
Warning
This item was deprecated in version 2019r2. Please use Clipboard.Text as a replacement.
Description
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
Compatibility
All project types on all supported operating systems.