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 3 For TreeView controls – PB Docs 150 – PowerBuilder Library

Syntax 3 For TreeView controls – PB Docs 150

Syntax 3 For TreeView controls

Description

Retrieves the data associated with the specified item.

Controls

TreeView controls

Syntax

Argument

Description

treeviewname

The name of the TreeView control in which
you want to get data for a specified item

itemhandle

The handle for the item for which you
want to retrieve information

item

A TreeViewItem variable in which you
want to store the item identified by the item handle

Return Values

Integer. Returns 1 if it succeeds and
-1 if an error occurs.

Usage

Use GetItem to retrieve the state information associated with
a specific item in a TreeView (such as label,
handle, or picture index). After you have retrieved the information,
you can use it in your application. To change a property of an item,
call GetItem to assign the item to a TreeViewItem
variable, change its properties, and call SetItem to
copy the changes back to the TreeView.

Examples

This code for the Clicked event gets the clicked
item and changes it overlay picture. The SetItem function
copies the change back to the TreeView:

This example tracks items in the SelectionChanged event. If
there is no prior selection, the value of l_tviold is
zero:

See Also


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