| 
        
          | 
              
                | 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.
 
 
 |  |  
 |