4D v14.3SET PICTURE TO LIBRARY |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
SET PICTURE TO LIBRARY
SET PICTURE TO LIBRARY
The SET PICTURE TO LIBRARY command creates a new picture or replaces a picture in the Picture Library. Before the call, you pass:
If there is an existing Picture Library graphic with the same reference number, the picture contents are replaced and the picture is renamed according to the values passed in picture and picName. 4D Server: SET PICTURE TO LIBRARY cannot be used from within a method executed on the server machine (stored procedure or trigger). If you call SET PICTURE TO LIBRARY on a server machine, nothing happens—the call is ignored. Warning: Design objects (hierarchical list items, menu items, etc.) may refer to Picture Library graphics. Use caution when modifying a Picture Library graphic programmatically. Note: If you pass an empty picture in picture or a negative or null value in picRef, the command does nothing. No matter what the current contents of the Picture Library, the following example adds a new picture to the Picture Library by first looking for a unique picture reference number:
PICTURE LIBRARY LIST($alPicRef;$asPicNames) The following example imports into the Picture Library the pictures (stored in a document on disk) created by the third example for the command PICTURE LIBRARY LIST: SET CHANNEL(10;"") If there is not enough memory to add the picture to the Picture Library, an error -108 is generated. Note that I/O errors may also be returned (i.e., the structure file is locked). You can catch these errors using an error-handling method. |
PROPERTIES
Product: 4D
HISTORY
Created: 4D v6.0.2 SEE ALSO
GET PICTURE FROM LIBRARY ARTICLE USAGE
4D Language Reference ( 4D v12.4) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||