Author |
Topic |
|
TreeNode
64 Posts |
Posted - 03/23/2010 : 10:39:20 AM
|
Origin Ver.8 SR6 Operating System: XP
Hi, please check examples of TreeNode::GetValue() and TreeNode::SetValue(), especially: TreeNode_GetValue_ex2() and TreeNode_SetValue_ex2().
GetValue examples: http://ocwiki.originlab.com/index.php?title=OriginC:TreeNode-GetValue#Examples
SetValue examples: http://ocwiki.originlab.com/index.php?title=OriginC:TreeNode-SetValue#Examples
The function: TreeNode_GetValue_ex2() doesnt find the values. I think method GetValue() only finds value, if first added node, from which method was called, is a leaf holding a value.
For example look at TreeNode_GetValue_ex1(). In other cases no value will be found.
Another thing is, that the parameter BOOL bAll doesnt make sence in method GetValue(), it only makes sence in method SetValue(), where all values should be changed, if bAll = TRUE.
But in function: TreeNode_SetValue_ex2() not all values got changed, even though bAll = TRUE.
Please take a look at this.
|-- TreeNode ...|-- a?? ...|-- ha!! |
|
Iris_Bai
China
Posts |
Posted - 03/25/2010 : 10:14:50 AM
|
Hi,
You are right, aAll is useless for TreeNode::GetValue method, we have updated the document.
Iris |
|
|
TreeNode
64 Posts |
Posted - 03/26/2010 : 12:51:45 PM
|
Hi Iris,
thanks for that. Have you checked the functionality of methods too? For example that TreeNode::SetValue() doesnt change all values, even though BOOL bAll = true?
|-- TreeNode ...|-- a?? ...|-- ha!! |
|
|
|
Topic |
|
|
|