Introduction MTB Statements File System Compiler Applications Reference Guide Index

Language Structure Data Division I/O Format Division Procedure Division Mnemonics

(Copy to Clipboard)

Mnemonic: (Copy to Clipboard)
Discussion: This mnemonic, which is used with the system driver (X00), copies program data to the Windows clipboard. This mnemonic is issued via a PRINT statement (see examples below).

This mnemonic returns a result string, so it is necessary to issue an INPUT statement following the PRINT statement. However, since this mnemonic should never fail, the result string will not contain any meaningful data.

Also see:
(Copy from Clipboard)
(Query Clipboard)

History: This mnemonic was added in REL 01.05 and requires Build 292 or higher.
Example 1:
LENGTH 254 & LOCAL RESULT$
.
.
.
Open (1) "X00"
Print (1) (Copy to Clipboard);"This is some data for the clipboard."
Input (1) Result$
Close (1)
Example 2:
LENGTH 254 & LOCAL RESULT$,DATA$
.
.
.
DATA$ = "This is some data for the clipboard."
Open (1) "X00"
Print (1) (Copy to Clipboard);DATA$
Input (1) Result$
Close (1)
Example 3:
LENGTH 254 & LOCAL RESULT$
.
.
.
Open (1) "X00"
Print (1) (Copy to Clipboard);""     ! Clear the clipboard
Input (1) Result$
Close (1)