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 values on multiple Worksheets

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
griselda_perez Posted - 06/12/2015 : 2:55:18 PM
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:
Hello!
Im using OriginPro 8.
Im using a Workbook with multiple Worksheets that are similar. So I want to add a new column in each Worksheet, and in this column I need the data from column B normalized by the maximum value.

I've been checking other users posts in this forum so I tried this (a little modified) script but it didn't work, can you please help me?

Script:
// loop over all sheets in book
doc -e LW {
// Add a column
wks.addcol();
// get index of added column
int ncols = wks.ncols;
// set value of this new col
wcol(ncols) = normalize iy:=Col(2) method:=max oy:=<new>;
}
Error: NORMALIZE IY:=Book2_B METHOD:=MAX OY:=<NEW>
LabTalk expression error: 1600
2   L A T E S T    R E P L I E S    (Newest First)
griselda_perez Posted - 06/12/2015 : 5:54:52 PM
In the column added in every Worksheet
lkb0221 Posted - 06/12/2015 : 3:08:33 PM
What do you mean by:
wcol(ncols) = normalize iy:=Col(2) method:=max oy:=<new>;

You want the normalize result in that added column or a new column?

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