version 6.0
CLEAR CLIPBOARD
Parameter | Type | Description | ||||
This command does not require any parameters |
Description
The CLEAR CLIPBOARD command clears the Clipboard of its contents. If the Clipboard contains multiple instances of the same data, all instances are cleared. After a call to CLEAR CLIPBOARD, the Clipboard becomes empty.
You must call CLEAR CLIPBOARD once before appending new data to the Clipboard using the command APPEND TO CLIPBOARD, because this latter command does not clear the Clipboard before appending the new data.
Calling CLEAR CLIPBOARD once and then calling APPEND TO CLIPBOARD several times enables you to Cut or Copy the same data under different formats.
On the other hand, the commands SET TEXT TO CLIPBOARD and SET PICTURE TO CLIPBOARD automatically clear the Clipboard before appending the TEXT or PICT data to it.
Examples
1. The following code clears and then appends data to the clipboard:
CLEAR CLIPBOARD ` Make sure the clipboard becomes empty APPEND TO CLIPBOARD('XWKZ';$vxSomeData) ` Append some data of type 'XWKZ' APPEND TO CLIPBOARD('SYLK';$vxSylkData) ` Append same data but as Sylk data
2. See example for the APPEND TO CLIPBOARD command.
See Also