Previous Up Next

_ADDtreeChild
Add a new item in a tree.

ObjTreeItem _ADDtreeChild (
ObjTree _tree_
ObjTreeItem _item_
I _flag_
S _name_
)
Parameters

_tree_
any tree object
_item_
tree item father : nil if the new item should be added as root child.
_flag_
flag :
TREE_INSERT_FIRST new item will be first child
TREE_INSERT_LAST new item will be last child
TREE_INSERT_SORT new item will be sorted by alphabetical order
_name_
name of the new item
Return value

new tree item