Clipboard.Close

From Xojo Documentation

You are currently browsing the old Xojo documentation site. It will go offline as of October 2, 2023. Please visit the new Xojo documentation site! - you will be redirected shortly...
Method

Clipboard.Close()

Supported on Desktop.

Closes the Clipboard which enables other Clipboard objects or other programs to access the Clipboard’s data. This function only affects Windows and is automatically called by the Clipboard’s Destructor.

Sample Code

This code gets the text on the Clipboard and copies it to a variable.

Var c As New Clipboard
Var s As String = c.Text
c.Close