cnsGetRoot

Returns the ID path of the root node of the tree which contains the given node.

Synopsis

bool cnsGetRoot(string cnsNodePath, string &cnsRootPath);

Parameters

Parameter Description
cnsNodePath The ID path of the node
cnsRootPath Receives the ID path of the root node

Return value

Returns TRUE if successful or FALSE in case of an error.

Errors

-

Description

This function returns the ID path of the root node of the tree which contains the given node.

main()
{
  string rootPath;
  cnsGetRoot("System1.View1:A.B.C.D.e", rootPath);
  DebugN(rootPath);
}

Availability

UI, CTRL