This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20
WP DELETE PICTURE

WP DELETE PICTURE 


 

WP DELETE PICTURE ( imgObj ) 
Parameter Type   Description
imgObj  Object in Image object (inline or anchored)

The WP DELETE PICTURE command deletes the image defined by the imgObj parameter.

If no image exists, the command does nothing.

Example  

You want to delete an image using its ID:

 C_OBJECT($myPicture)
 
  // get image  
 $myPicture:=WP Get element by ID(myDoc;"Logo")
 
  // Delete the image
 WP DELETE PICTURE($myPicture)



See also 

Handling pictures
WP Add picture

 
PROPERTIES 

Product: 4D
Theme: 4D Write Pro Language
Number: 1701

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v18 R2

 
ARTICLE USAGE

4D Write Pro Reference ( 4D v20)