|
CLIP_BOARD |
Use Windows Clipboard |
|
1. |
Read Clipboard Data: |
CLIP_BOARD READ var$[,ERR=stmtref] |
|
2. |
Write Clipboard Data: |
CLIP_BOARD WRITE text$[,ERR=stmtref] |
|
stmtref |
Program line number or statement label to which to transfer control. |
|
text$ |
The data to place into the Windows Clipboard. |
|
var$ |
String variable. Receives the contents of the Clipboard. |
Use the CLIP_BOARD directive to have PxPlus 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 PxPlus to access the Clipboard. The write limit depends on the system.
PxPlus 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.
input "Enter customer ID:",C$
read (1,key=C$)C.NM$,C.ADR1$,C.ADR2$
clip_board write C$+" "+C.NM$+$0D0A$+C.ADR1$+$0D0A$+C.ADR2$
print "Your information is in the Clipboard."