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
LabTalk Forum
GetSize() on a dataset in a tree
New Topic
Reply to Topic
Printer Friendly
Author
Topic
JokerOne
Germany
58 Posts
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
SeanMao
China
288 Posts
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.
JokerOne
Germany
58 Posts
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.
Topic
New Topic
Reply to Topic
Printer Friendly
Jump To:
Select Forum
Origin Forum
Origin Forum
Origin Viewer Forum
Origin Forum for Programming
Forum for Python
LabTalk Forum
Forum for Origin C
Forum for Automation Server/COM and LabVIEW
Origin中文论坛
Origin 中文论坛 (Chinese Origin Forum)
Japanese Origin Forum
Origin日本語フォーラム (Japanese Origin Forum)
Origin on Linux
The Origin on Linux Forum
Private Forums
Distributor Forum
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000