Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

DeletePicture – PB Docs 2021 – PowerBuilder Library

DeletePicture – PB Docs 2021

DeletePicture

PowerScript function

Description

Deletes a picture from the image list.

Applies to

PictureListBox, DropDownPictureListBox, and TreeView controls

Syntax

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
the TreeView control’s image list

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:

See also

AddPicture

DeletePictures


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x