ExpandItem PowerScript function
Description
Expands a specified item.
Controls
TreeView controls
Syntax
|
1 |
<span>treeviewname</span><span>.ExpandItem</span> ( <span>itemhandle</span> ) |
|
Argument |
Description |
|---|---|
|
treeviewname |
The TreeView control in which you want |
|
itemhandle |
The handle of the item you want to expand |
Return Values
Integer. Returns 1 if it succeeds and
-1 if an error occurs.
Usage
ExpandItem expands only a single item.
To expand a specified item including its children, use ExpandAll.
Examples
This example expands the current level of a TreeView:
|
1 |
long ll_tvi |
|
1 |
ll_tvi = tv_list.FindItem(CurrentTreeItem! , 0) |
|
1 |
tv_list.<span>ExpandItem</span>(ll_tvi) |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest