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
 Adding an element to a Dataset object

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
lijbereket Posted - 06/08/2023 : 4:10:16 PM
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
1   L A T E S T    R E P L I E S    (Newest First)
ChaoC Posted - 06/09/2023 : 11:15:26 AM
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

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