| 4D v15 R3GET PICTURE FROM LIBRARY | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | 
    4D v15 R3
 GET PICTURE FROM LIBRARY 
         | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| GET PICTURE FROM LIBRARY ( picRef | picName ; picture ) | ||||||||
| Parameter | Type | Description | ||||||
| picRef | picName | Longint, String |   | Reference number of Picture Library graphic or Name of Picture Library graphic | |||||
| picture | Picture variable |   | Picture from the Picture Library | |||||
The GET PICTURE FROM LIBRARY command returns in the picture parameter the Picture Library graphic whose reference number is passed in picRef or whose name is passed in picName.
If there is no picture with that reference number or name, GET PICTURE FROM LIBRARY leaves picture unchanged.
The following example returns in vgMyPicture the picture whose reference number is stored in the local variable $vlPicRef:
 GET PICTURE FROM LIBRARY($vlPicRef;vgMyPicture)The following example returns in $DDcom_Prot_MyPicture the picture with the name "DDcom_Prot_Button1" stored in the Picture Library:
 GET PICTURE FROM LIBRARY("DDcom_Prot_Button1";$DDcom_Prot_MyPicture)See the third example for the PICTURE LIBRARY LIST command.
If the Picture Library exists, the OK variable is set to 1. Otherwise, OK is set to zero.
If there is not enough memory to return the picture, an error -108 is generated. You can catch this error using an error-handling method.
									PICTURE LIBRARY LIST
									
									REMOVE PICTURE FROM LIBRARY
									
									SET PICTURE TO LIBRARY
									
	Product:  4D
	Theme:  Pictures
	Number:  
        565
        
        
        
	
	Modified:  4D v6.7
	
	
	
	
	
	4D Language Reference ( 4D v15 R3)
	
	4D Language Reference ( 4D v15)
	
	
	
	4D Language Reference ( 4D v15.4)
	
	
	
	
	4D Language Reference ( 4D v15.3)
	
	
 Add a comment
Add a comment