IsItemExpandable Function

Class

TreeView.

Action

Tests whether the item is expandable.

Availability

This functionality is supported only if you are using the Classic Agent.

Syntax

bCanExpand = treeview.IsItemExpandable(Item)
Variable Description
bCanExpand TRUE if the item is expandable. BOOLEAN.
Item The item to test. STRING or INTEGER.

Notes

IsItemExpandable returns TRUE if the treeview item has children.

Example

if(MyDialog.MyTreeView.IsItemExpandable("/root/child"))
//...