4D v13WR DELETE PICTURE IN PAGE |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Write v13
WR DELETE PICTURE IN PAGE
|
WR DELETE PICTURE IN PAGE ( area ; pictureNumber ) | ||||||||
Parameter | Type | Description | ||||||
area | Longint |
![]() |
4D Write area | |||||
pictureNumber | Longint |
![]() |
Picture number | |||||
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.
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
Product: 4D
Theme: WR Picture Control
Number:
89450
Created: 4D Write 6.5