Output to the clipboard
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Output to the clipboard
In general, you use the CLIPBOARD system
handle to write output to the system clipboard (in graphical environments) or OpenEdge
clipboard (in character environments). However, in Windows, you can use the OUTPUT TO statement to redirect output to the system clipboard
using the "CLIPBOARD" option (quotes required). This allows
you to use ABL output statements (such as DISPLAY) to buffer
up to 64K of data to the clipboard. You send the buffered data to the clipboard by changing or
closing the output destination (using the OUTPUT CLOSE
statement). For more information on changing and closing the output destination, see Sending output to multiple destinations. For more
information on using the CLIPBOARD system handle for output
(and also input), see System Clipboard.