The TreeView_CollapseNode() function collapses the specified node in a tree view field.
TreeView_CollapseNode(tree_view_field, node_ID)
• tree_view_field – The tree view field containing the node to be collapsed.
• node_ID – A long integer specifying the ID of the node to be collapsed.
A boolean indicating whether the node was successfully collapsed. True indicates the node was successfully collapsed. False indicates the node was already collapsed.