4D v14.3

CLEAR PASTEBOARD

Home

 
4D v14.3
CLEAR PASTEBOARD

CLEAR PASTEBOARD 


 

CLEAR PASTEBOARD  
Does not require any parameters

The CLEAR PASTEBOARD command clears the pasteboard of all its contents. If the pasteboard contains multiple instances of the same data, all instances are cleared. After a call to CLEAR PASTEBOARD, the pasteboard is empty.

You must call CLEAR PASTEBOARD once before appending new data to the pasteboard using the command APPEND DATA TO PASTEBOARD, because this latter command does not clear the pasteboard before appending the new data.

Calling CLEAR PASTEBOARD once and then calling APPEND DATA TO PASTEBOARD several times enables you to Cut or Copy the same data under different formats.

On the other hand, the SET TEXT TO PASTEBOARD and SET PICTURE TO PASTEBOARD commands automatically clear the pasteboard before appending the data to it.

The following code clears and then appends data to the pasteboard:

 CLEAR PASTEBOARD ` Make sure the pasteboard is emptied
 APPEND DATA TO PASTEBOARD("com.4d.private.picture.gif";$vxSomeData` Add some gif pictures
 APPEND DATA TO PASTEBOARD("com.4d.private.text.rtf";$vxSylkData` Add some RTF text

See example for the APPEND DATA TO PASTEBOARD command.

 
PROPERTIES 

Product: 4D
Theme: Pasteboard
Number: 402

 
HISTORY 

Modified: 4D v11 SQL

 
SEE ALSO 

APPEND DATA TO PASTEBOARD

 
ARTICLE USAGE

4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)