4D v14.3

GET PICTURE FROM PASTEBOARD

Home

 
4D v14.3
GET PICTURE FROM PASTEBOARD

GET PICTURE FROM PASTEBOARD 


 

GET PICTURE FROM PASTEBOARD ( picture ) 
Parameter Type   Description
picture  Picture in Picture extracted from pasteboard

GET PICTURE FROM PASTEBOARD returns the picture present in the pasteboard in the picture field or variable.

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

Example  

The following button’s object method assigns the picture (jpeg or gif format) present in the pasteboard (if any) to the field [Employees]Photo:

 If((Pasteboard data size("com.4d.private.picture.jpeg")>0)|(Pasteboard data size("com.4d.private.picture.gif")>0))
    GET PICTURE FROM PASTEBOARD([Employees]Photo)
 Else
    ALERT("The pasteboard does not contain any pictures.")
 End if

If the picture is correctly extracted, OK is set to 1; otherwise OK is set to 0.

If there is not enough memory to extract the picture, an error -108 is generated.

 
PROPERTIES 

Product: 4D
Theme: Pasteboard
Number: 522

The OK variable is changed by the commandThis command modifies the Error system variable

 
HISTORY 

Modified: 4D v11 SQL

 
SEE ALSO 

GET PASTEBOARD DATA
Get text from pasteboard
Pasteboard data size

 
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)