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
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 TreeNode::GetValue(), SetValue() dont work well

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
TreeNode 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!!
2   L A T E S T    R E P L I E S    (Newest First)
TreeNode 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!!
Iris_Bai 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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000