| 4D v15 R3REMOVE PICTURE FROM LIBRARY | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | 
    4D v15 R3
 REMOVE PICTURE FROM LIBRARY 
         | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| REMOVE PICTURE FROM LIBRARY ( picRef | picName ) | ||||||||
| Parameter | Type | Description | ||||||
| picRef | picName | Longint, String |   | Reference number of Picture Library graphic or Name of Picture Library graphic | |||||
The REMOVE PICTURE FROM LIBRARY command removes from the Picture Library the picture 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, the command does nothing.
4D Server: REMOVE PICTURE FROM LIBRARY cannot be used from within a method executed on the server machine (stored procedure or trigger). If you call REMOVE PICTURE FROM 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 deleting a Picture Library graphic programmatically.
The following example deletes the picture #4444 from the Picture Library.
 REMOVE PICTURE FROM LIBRARY(4444)The following example deletes from the Picture Library any pictures whose names begin with a dollar sign ($):
 PICTURE LIBRARY LIST($alPicRef;$asPicName)
 For($vlPicture;1;Size of array($alPicRef))
    If($asPicName{$vlPicture}="$@")
       REMOVE PICTURE FROM LIBRARY($alPicRef{$vlPicture})
    End if
 End for
									GET PICTURE FROM LIBRARY
									
									PICTURE LIBRARY LIST
									
									SET PICTURE TO LIBRARY
									
	Product:  4D
	Theme:  Pictures
	Number:  
        567
        
        
        
	
	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