ClipboardText

Family: Extras · 2 forms

What it does

ClipboardText writes to an Extras object: it sets rather than reads. It takes szText (a string), and returns nothing. That is the first of 2 forms.

Syntax

1
ClipboardText(szText string)
2
ClipboardText() → string

Parameters

NameTypeIn forms
szTextstring1

What each form returns

1ClipboardText("hello")nothing
2ClipboardText()string

Example · generated

Form 1, you choose the id yourself

ClipboardText("hello")DO  Sync()LOOP

Form 2, the command hands back the id

DO  Print(ClipboardText())  Sync()LOOP

ClipboardText is called with values of the types its signature asks for. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

21 commands in Extras