The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 TreeNode::GetValue(), SetValue() dont work well
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

TreeNode

64 Posts

Posted - 03/23/2010 :  10:39:20 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

You are right, aAll is useless for TreeNode::GetValue method, we have updated the document.



Iris
Go to Top of Page

TreeNode

64 Posts

Posted - 03/26/2010 :  12:51:45 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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!!
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000