DeletePicture
PowerScript function
Description
Deletes a picture from the image list.
Applies to
PictureListBox, DropDownPictureListBox, and TreeView controls
Syntax
|
1 |
controlname.DeletePicture ( index ) |
|
Argument |
Description |
|---|---|
|
controlname |
The control from which you want to delete a picture |
|
index |
The index number of the picture you want to delete from |
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs.
Usage
When you delete a picture from the image list for a control, all
subsequent pictures in the list are renumbered to fill the gap. Because
the picture index for an item does not change, the pictures for items that
use the affected index numbers will change.
Examples
This example deletes the sixth image from the image list:
|
1 |
tv_list.DeletePicture(6) |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest