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
 LabTalk Forum
 GetSize() on a dataset in a tree

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
JokerOne Posted - 02/22/2016 : 07:22:48 AM
Origin Ver. 9.1 and Service Release 1(Select Help-->About Origin):
Operating System: Win 7

Hello everybody,

I am wondering about wht is the correct systax for using methods like "GetSize()" on a dataset within a tree:

>>dataset aaa
>>tree ccc
>>aaa[1] = 1
>>aaa[2] = 2
>>ccc.a = aaa
>>ccc.a=
ccc.a=--
>>ccc.a[1]=
ccc.a[1]=1
>>ccc.a[2]=
ccc.a[2]=2
>>ccc.a.GetSize()=
ccc.a.GetSize()=--
???
>>(ccc.a).GetSize()=
Variable nicht definiert: CCC.A).GETSIZE(

??? Apparently, wrong syntax

aaa.GetSize()=
aaa.GetSize()=2

works of course. Do I have you use such a workaround?

Thanks for your help

2   L A T E S T    R E P L I E S    (Newest First)
JokerOne Posted - 02/23/2016 : 11:27:12 AM
Yes,thanks for your answer.

That is how I am currently dealing with this. I was just curious, if there was another option. However, thanks again.
SeanMao Posted - 02/22/2016 : 9:11:42 PM
Hi,

To access the vector inside of a tree, you will need to copy it to a dataset.

For your case, you need to define another dataset:

dataset bb;

bb = ccc.a;

bb.GetSize()=;

Regards!

Sean

OriginLab Tech.


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