Home > Language Reference > LogFile and Clipboard Functions > SetClipboard

SetClipboard

The SetClipboard function sets the specified text to the Clipboard.

Usage

Used to simulate an Edit/Copy (or Control + c keyboard shortcut).

Syntax

SetClipboard(<text>)

Parameter

<text>, string, text to send to the Clipboard. This string can then be retrieved by GetClipboard$ function or by the Edit/Paste menu of other applications.

See also

GetClipboard$

Examples

SetClipboard("abcdef") ' The Clipboard contains now "abcdef"

SetClipboard (a$)        ' The Clipboard contains the a$ content
b$=GetClipboard$()