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() → stringParameters
| Name | Type | In forms |
|---|---|---|
| szText | string | 1 |
What each form returns
| 1 | ClipboardText("hello") | nothing |
| 2 | ClipboardText() | string |
Example · generated
Form 1, you choose the id yourself
ClipboardText("hello")DO Sync()LOOPForm 2, the command hands back the id
DO Print(ClipboardText()) Sync()LOOPClipboardText 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.