REMOVE PICTURE FROM LIBRARY

4D - Documentation   Français   English   German   Spanish   Japanese   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 6.7 (Modified)


REMOVE PICTURE FROM LIBRARY (picRef | picName)

ParameterTypeDescription
picRef | picNameNumber | StringReference number of Picture Library graphic or
Name of Picture Library graphic

Description

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.

Examples

1. The following example deletes the picture #4444 from the Picture Library.

   REMOVE PICTURE FROM LIBRARY(4444)

2. 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

See Also

GET PICTURE FROM LIBRARY, PICTURE LIBRARY LIST, SET PICTURE TO LIBRARY.


4D - Documentation   Français   English   German   Spanish   Japanese   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next