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
 LabTalk Forum
 Adding an element to a Dataset object
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

lijbereket

14 Posts

Posted - 06/08/2023 :  4:10:16 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2022
Operating System:Windows 10

I have a rather trivial question: is it possible to add elements to a declared dataset? I have a script which currently defines a StringArray and adds elements to this array if certain conditional statements are met. I am trying to use a Dataset instead since the elements in the array are numbers, which I would like to use to perform arithmetic operations.

Thank you

ChaoC

USA
185 Posts

Posted - 06/09/2023 :  11:15:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

You can set the increase the size of the dataset with SetSize() and assign values to the new elements.
https://www.originlab.com/doc/en/LabTalk/ref/Datasets

Best,
Chao
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