DeletePicture PowerScript function
Description
Deletes a picture from the image list.
Controls
PictureListBox, DropDownPictureListBox, and TreeView controls
Syntax
|
1 |
<span>controlname</span><span>.DeletePicture</span> ( <span>index</span> ) |
|
Argument |
Description |
|---|---|
|
controlname |
The control from which you want to delete |
|
index |
The index number of the picture you want |
Return Values
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.<span>DeletePicture</span>(6) |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest