Get array as string from the node
BOOL GetArrayAsString( string & strVal, DWORD dwCntrl = TREEGETARRAYASSTRING_DOTTED )
Returns TRUE on success, FALSE on failure.
EX1
void TreeNode_GetArrayAsString_ex1() { Tree tr; TreeNode trNode = tr.AddNode("node1",1); out_tree(tr); vector<int> vnVals = {1, 2, 3}; trNode.nVals = vnVals; string strArrayVal; if ( trNode.GetArrayAsString(strArrayVal, TREEGETARRAYASSTRING_NO_TOTAL_PREFIX) ) { printf("The value is %s\n", strArrayVal); } }
origin.h