54
CLIP_BOARD Directive
Use Windows Clipboard
Formats
1. Read Clipboard Data: CLIP_BOARD READ var$[,ERR=stmtref]
2. Write Clipboard Data: CLIP_BOARD WRITE text$[,ERR=stmtref]
Where:
stmtref
Program line number or label to transfer control to.
text$
The data to place into the Windows clipboard.
var$
String variable. Receives the contents of the clip board.
Description
Note: This directive is for Windows or WindX only.
Use the CLIP_BOARD directive to have ProvideX application read or write to the
Windows clipboard. Only text can be passed to/from the clipboard. You can read a
maximum of 32000 bytes using ProvideX to access the clipboard. The write limit
depends on the system.
ProvideX does not interpret the data in the clipboard. Because of this, carriage return
$0D$ and line feed $0A$ characters are present in multi-line clipboard data when it
is read. You should place these characters between the lines when writing to the
clipboard.
Examples
1000
INPUT "Enter customer ID:",C$
1010
READ (1,KEY=C$)C.NM$,C.ADR1$,C.ADR2$
1020
CLIP_BOARD WRITE C$+" "+C.NM$+$0D0A$+C.ADR1$+$0D0A$+C.ADR2$
1030
PRINT "Your information is in the clipboard.."