version 6.0
GET PICTURE FROM CLIPBOARD (picture)
Parameter | Type | Description | |
picture | Picture | Picture extracted from the Clipboard |
Description
GET PICTURE FROM CLIPBOARD returns the picture present in the Clipboard into the picture field or variable picture.
If the picture is correctly extracted from the Clipboard, the command sets the OK variable to 1. If the Clipboard is empty or does not contain a picture, the command returns an empty picture, sets the OK variable to 0, and generates an error -102. If there is not enough memory to extract the picture from the Clipboard, the command sets the OK variable to 0 and generates an error -108.
Example
The following button's object method assigns the picture present in the Clipboard (if any) to the field [Employees]Photo:
If (Test clipboard ("PICT")>0) GET PICTURE FROM CLIPBOARD ([Employees]Photo) Else ALERT ("The clipboard does not contain any picture.") End if
See Also
GET CLIPBOARD, Get text from clipboard, Test clipboard.
System Variables
If the picture is correctly extracted, OK is set to 1; otherwise OK is set to 0 and an error is generated.
Error Handling
If there is not enough memory to extract the picture, an error -108 is generated.
If there is no picture in the Clipboard, an error -102 is generated.