8.1.25.9 TreeNode::SetStrValue

It is recommended that you switch to the originpro package. PyOrigin is primarily for users who need to work with Origin version prior to 2021.


Description

Set values to the TreeNode

Syntax

SetStrValue(string, Index = "")

Parameters

nval
The value to be set
PropName
tag name of leaves to set values to, if NULL will set values to "this" TreeNode object

Return

None

Examples

import PyOrigin
NewTree = PyOrigin.EmptyTree()
if(NewTree.IsValid()):
    NewTree.SetName('NEW')
    NewTree.SetStrValue('TEST')
    print("%s" %(NewTree.GetStrValue()))

See Also

TreeNode::GetStrValue