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

Syntax 4: For ListView controls – PB Docs 2021 – PowerBuilder Library

Syntax 4: For ListView controls – PB Docs 2021

Syntax 4: For ListView controls

Description

Adds an item to a ListView control by referencing all the
attributes in the ListView item.

Applies to

ListView controls

Syntax

Argument

Description

listviewname

The name of the List View control to which you are
adding a picture or item

item

The ListViewItem variable containing properties of the
item you are adding

Return value

Integer.

Returns the index of the item if it succeeds and -1 if an error
occurs.

Usage

Use this syntax if you need to specify all the properties for the
item you want to add. If you only need to specify the label and picture
index, use Syntax 3.

Examples

This example uses AddItem in a CommandButton Clicked event to add
a ListView item for each click:

See also

DeleteItem

FindItem

InsertItem

Reset

TotalItems


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