AutoPlay Media Studio 9

Tree.GetChildCount

Tree.GetChildCount

This is the first topic This is the last topic  

Tree.GetChildCount

This is the first topic This is the last topic  

OverviewExamples

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


Learn More: Indigo Rose Software - AutoPlay Media Studio - Buy Now - Contact Us