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 1: For TreeView controls – PB Docs 2021 – PowerBuilder Library

Syntax 1: For TreeView controls – PB Docs 2021

Syntax 1: For TreeView controls

Description

Inserts an item in sorted order, if possible.

Applies to

TreeView controls

Syntax

Argument

Description

treeviewname

The TreeView control in which you want to insert and
sort an item as a child of its parent, according to its
label.

handleparent

The handle of the item that will be the inserted item’s
parent. To insert the item at the first level, specify
0.

label

The label by which you want to sort the item as a child
of its parent.

pictureindex

The picture index for the item you want to sort as a
child of its parent, according to its label.

Return value

Long.

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

Usage

If SortType is anything except Unsorted!, the TreeView is always
in a sorted state and you do not need to use InsertItemSort — you can
use any insert function.

If SortType is Unsorted!, InsertItemSort attempts to insert the
item at the correct place in alphabetic ascending order. If the list is
out of order, it does its best to find the correct place, but results
may be unpredictable.

Examples

This example populates the fourth level of a TreeView
control:

See also

InsertItem

InsertItemLast

InsertItemFirst


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