PropertyNode::strVal

Contents

ClassName

PropertyNode

AccessType

public

Name

strVal

Declaration

string strVal

Remark

Examples

EX1

void PropertyNode_strVal_ex1()
{
    Tree tr;
    TreeNode trN = tr.AddNode("node1",1);
    trN.strVal = "abc";    //Assign string value to tree node
    out_tree(tr);
}

EX1

void PropertyNode_strVal_ex2()
{
    Tree tr;
    TreeNode tn1;
    tn1 = tr.AddTextNode("Hello", "node1", 1);  //Add TextNode
    out_tree(tr);
 
    out_str("strVal = " + tn1.strVal);          //Output the text
}

Description

String value of the node.

header to Include

origin.h

See Also

PropertyNode::strVals

Reference