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
 Set column values on multiple Worksheets
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

griselda_perez

Mexico
2 Posts

Posted - 06/12/2015 :  2:55:18 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

lkb0221

China
497 Posts

Posted - 06/12/2015 :  3:08:33 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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?
Go to Top of Page

griselda_perez

Mexico
2 Posts

Posted - 06/12/2015 :  5:54:52 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
In the column added in every Worksheet
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