| 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 |