Action
Returns the number of children of an expanded item in a treeview.
Availability
This functionality is supported only if you are using the Classic Agent.
Syntax
iCount = treeview.GetSubItemCount (Item)
Variable
|
Description
|
iCount
|
Count of children of the specified item; if the specified item has no children or is collapsed, returns 0.
INTEGER.
|
Item
|
The item whose children to count.
STRING or
INTEGER.
|
Notes
GetSubItemCount returns the count of children for a treeview item. If the item has no children or is collapsed, the returned count is 0.
For information about specifying
Item, see
TreeView class.
Example
Verify(MyDialog.MyTreeView.GetSubItemCount("/root/child"), 3)