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
 working with 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
Weldon Posted - 02/21/2005 : 6:47:06 PM
Origin Version (Select Help-->About Origin): 7.5
Operating System: w2k

I wrote a script to loop through the columns of one worksheet, integrating each one. This works fine, but I run into trouble when I try to write them to a second worksheet.
I call the integrating script form a for loop, but how can I put them into rows in the other worksheet?

This doesn't work, of course, but it's what I'm trying to do.
data1_b[%(i)] = integ data2_col(%(i))
How do I specify a worksheet and loop through columns in numerical sequence?
3   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 02/23/2005 : 10:21:39 PM
Probably the most concise explanation is in the programming guide...

LabTalk Language Reference-> Overview of the LabTalk Language-> Substitution Notation


See also...

LabTalk Language Reference-> Overview of the LabTalk Language-> Data Types-> Datasets-> Accessing Dataset Elements

Mike Buess
Origin WebRing Member
Weldon Posted - 02/23/2005 : 8:41:22 PM
Yes it does work, thanks.
This substitution notation is funky stuff. Is there any where I can get a simple explanation of the syntax?
Mike Buess Posted - 02/21/2005 : 9:43:04 PM
This will integrate each column in data2 and place the areas in data1...

for(i=1; i<=wks.ncols; i++) {
integ %(data2,i); // integrate col i
data1_b[i]=integ.area; // put area in row i
};

Mike Buess
Origin WebRing Member

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