Introduction MTB Statements File System Compiler Applications Reference Guide Index

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

(Copy from Clipboard)

Mnemonic: (Copy from Clipboard)
Discussion: This mnemonic, which is used with the system driver (X00), copies the contents from the Windows clipboard into one or more program variables. This mnemonic is issued via a PRINT statement, and the clipboard data is obtained via a subsequent INPUT statement (see example below).

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

History: This mnemonic was added in REL 01.05 and requires Build 292 or higher.
Example 1:
LENGTH 254 & LOCAL RESULT$       ! Define a variable
.
.
.
Open (1) "X00"                   ! Open system driver
Print (1) (CopyFromClipboard)    ! Copy data from clipboard
Input (1) Result$                ! to this variable
Close (1)                        ! Close system driver
Example 2:
LENGTH 254 & LOCAL A$,B$,C$      ! Define 3 variables

CLIP: FORMAT A$;B$;C$            ! FORMAT statement for clipboard data

Open (1) "X00"                   ! Open system driver
Print (1) (CopyFromClipboard)    ! Copy data from clipboard
Input (1,CLIP)                   ! to the variables in this FORMAT statement
Close (1)                        ! Close system driver