XADtreeadd


Purpose
Add a branch to a tree
Synopsis
procedure XADtreeadd(id:integer, parent:string, items: set of string)
Arguments
id 
Tree identifier
parent 
Parent branch identifier (single string or comma-separated strings for deeper items)
items 
Items to show when parent is expanded
Example

    XADtreeadd(id_tree,"January",{"New York","London","Paris"})
    XADtreeadd(id_tree,"February",{"New York","London","Paris"})
    XADtreeadd(id_tree,"January,New York",{"Rainfall","Snowfall"})
   
XAD/treeexample.png
Further information
Add a branch to the tree. If the parent is a single string, it is added as a root item. Then all the items are added as its children. If the parent is string consisting of comma separated names, XAD will travel down the tree until it finds the corresponding node. Then all the items are added as its children.
Related topics
XADcreatetree, XADtreereset, XADtreeexpand


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.