# Directives

CLIP_BOARD | 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 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.

## Description

#### Note:
The CLIP_BOARD directive is supported for use in Windows or WindX only.

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.

## Example

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."