Try OpenEdge Now
skip to main content
Programming Interfaces
Input/Output Processes : Alternate I/O Sources : Changing the output destination : Output to the clipboard
 
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.