Tree.GetChildCount

number Tree.GetChildCount (

string ObjectName,

string ParentNodeIndex )

Example 1

-- Get the child count of 'Tree1'
ChildCount = Tree.GetChildCount("Tree1", "1");

-- Check for number of elements
if ChildCount > 0 then
-- The node has at least one child
else
-- The node has no children
end

Gets the number of children under the node "1" of the "Tree1" tree object.

See also: Related Actions