| Author |
Topic  |
|
|
Catweezle
Germany
Posts |
Posted - 06/24/2005 : 12:03:18 PM
|
Origin Version (Select Help-->About Origin): Operating System: Windows XP Pro
Hy all,
I am sorry for this maybe easy questions, but I am a beginner and I need this for the analysis in my study, and i have less time at the moment for learning labtalk. Please can someone help me ?
I would like to delete some columns in a worksheet,more precisely every third column but it would be better if I could choose the number of the column which should be delete. The columns named as C1(y), C2(y)...C30(y). How can I change Y to X [C1(Y)to C1(X)] ? Also it would be fine to build a difference beetwen two worksheets with for example 10coulmns. How can I write all this in Labtalk ?
I would be happy if you can help me.
Thank you very much and have a nice sunny day.
|
|
|
Mike Buess
USA
3037 Posts |
Posted - 06/24/2005 : 12:40:55 PM
|
>This deletes the ith column...
del wcol(i);
>This deletes column 1,4,7,...
for(i=1;i<=wks.ncols;i+=3) { del wcol(i); };
>This makes the ith column an X column...
wo -t i 4;
>This creates a wks containing the differences between corresponding values in Data1 and Data2...
win -a Data1; // activate Data1 win -d; // duplicate doc -e W {%W=%H}; // find name of new wks win -a %W; // activate new wks loop (i,1,wks.ncols) { wcol(i)-=%(Data2,i); // subtract corresponding cols in Data2 };
Mike Buess Origin WebRing Member
Edited by - Mike Buess on 06/24/2005 12:43:25 PM |
 |
|
| |
Topic  |
|
|
|