2.2.3.10.8 PropertyNode::nVal

ClassName

PropertyNode

AccessType

public

Name

nVal

Declaration

int nVal

Remark

Examples

EX1

void PropertyNode_nVal_ex1()
{
    Tree tr;
    TreeNode trN = tr.AddNode("node1",1);
    trN.nVal = 1;    //Assign integer value to tree node
    out_tree(tr);
}

EX2

void PropertyNode_nVal_ex2()
{
    Tree tr;
    TreeNode tn1;
    tn1 = tr.AddNumericNode(1024, "node1", 1);
    out_tree(tr);
 
    out_str("nVal = " + tn1.nVal);
}

Description

Integer value of the node.

Header to Include

origin.h

See Also

PropertyNode::nVals, PropertyNode::nVals2

Reference