4D v14.3

SET TEXT TO PASTEBOARD

Home

 
4D v14.3
SET TEXT TO PASTEBOARD

SET TEXT TO PASTEBOARD 


 

SET TEXT TO PASTEBOARD ( text ) 
Parameter Type   Description
text  String in Text to be put into the pasteboard

SET TEXT TO PASTEBOARD clears the pasteboard and then puts a copy of the text you passed in text into the pasteboard.

Note: In the case of copy/paste operations, the pasteboard is equivalent to the Clipboard

After you have put some text into the pasteboard, you can retrieve it using the Get text from pasteboard command or by calling for example GET PASTEBOARD DATA ("com.4d.private.text.native";...).

4D text expressions can contain up to 2 GB of text.

Note: The pasteboard is read only during the On Drag Over form event. It is not possible to use this command in this context.

Example  

See the example for the APPEND DATA TO PASTEBOARD command.

If a copy of the text is correctly placed in the pasteboard, the OK variable is set to 1. If there is not enough memory to place a copy of the text in the pasteboard, the OK variable is set to 0, but no error is generated.

 
PROPERTIES 

Product: 4D
Theme: Pasteboard
Number: 523

The OK variable is changed by the command

 
HISTORY 

Modified: 4D v11 SQL

 
SEE ALSO 

APPEND DATA TO PASTEBOARD
Get text from 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)