Command WR DELETE PICTURE IN PAGE

4D Write

WR DELETE PICTURE IN PAGE

version 6.5


WR DELETE PICTURE IN PAGE (area; pictureNumber)

ParameterTypeDescription
areaLongint4D Write area
pictureNumberLongintPicture number

Description

The WR DELETE PICTURE IN PAGE command deletes the picture whose number is passed in pictureNumber from the 4D Write area referenced by area. For the WR DELETE PICTURE IN PAGE command to operate properly, the picture must be located in the page, rather than in the text stream. To delete a picture in the text stream, select it and call WR DELETE SELECTION.

You can retrieve a type number of pictures in an area by using, WR Count(area;13).

When deleting a picture, 1 is substracted from each of the following picture numbers.

You can also retrieve the picture number using the WR Get selected picture command.

Example

The following example deletes all the pictures located in the page for the specified area.

   $NbOccurrence:=WR Count(area;13)
   For ($i;1;$NbOccurrence)
         `It is always the first picture that is deleted
      WR DELETE PICTURE IN PAGE (area;1) 
   End for

See Also

WR GET PICTURE IN PAGE INFO, WR INSERT PICTURE.