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
 Set column formula using Labtalk (origin 7.5)

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
kumarb Posted - 03/18/2011 : 06:49:15 AM
I would like to set the column formula using labtalk script.Kindly let me know the solution.
Regards,
Kumar.B

Kumar B
3   L A T E S T    R E P L I E S    (Newest First)
Penn Posted - 03/21/2011 : 02:20:22 AM
Hi Kumar.B,

Do you mean to set something like "col(a)*2+3" into the text box of the Set Column Values dialog? Or just want to run some LabTalk script to set column values according to formula?

If the former case, I am afraid you cannot do that in Origin 7.5. However, you can use the csetvalue X-Function to do that with the latest version, Origin 8.5. You can run the script "csetvalue col:=col(b) formula:=col(a)*2+3" in Script Window.

If the latter case, just run "col(b)=col(a)*2+3" in Script Window.

Penn
kumarb Posted - 03/21/2011 : 12:44:02 AM
quote:
Originally posted by Penn

Hi Kumar.B,

You can use Set Column Values dialog. For example, there is a formula y=x*2+3, where x is stored in column A, and then I want to calculate y and store it in column B. Just right-click on column B and then select Set Column Values from the context menu, then put the expression "col(a)*2+3" in the text box of the pop-up dialog.

Penn


------------------------------------------------------------
Hi Penn,
Thanks for the answer.But my question is how to do that using Labtalk script instead of manual selection method.


Kumar B
Penn Posted - 03/20/2011 : 11:49:29 PM
Hi Kumar.B,

You can use Set Column Values dialog. For example, there is a formula y=x*2+3, where x is stored in column A, and then I want to calculate y and store it in column B. Just right-click on column B and then select Set Column Values from the context menu, then put the expression "col(a)*2+3" in the text box of the pop-up dialog.

Penn

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