AutoPlay Media Studio 9

Tree.RemoveNode

Tree.RemoveNode

This is the first topic This is the last topic  

Tree.RemoveNode

This is the first topic This is the last topic  

OverviewExamples

Tree.RemoveNode (

string ObjectName,

string NodeIndex )

Example 1

Tree.RemoveNode("Tree1", "2.1");

Removes the node at index "2.1" from the "Tree1" tree object.

Example 2

-- Count the number of items

nItemCount = Tree.GetChildCount("Tree1", "0");

 

-- Check that no error occured (-1) and that items exist (0)

if nItemCount ~= -1 and nItemCount ~= 0 then

  -- Moving from the last item to the first, remove items

  for nCount=nItemCount, 1, -1 do

      Dialog.Message(nCount, nCount);

      Tree.RemoveNode("Tree1", nCount);

  end

end

Removes all parent nodes in reverse order.

See also: Related Actions


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