| T O P I C R E V I E W |
| celarson |
Posted - 06/11/2003 : 12:39:42 PM Hope someone can come to my rescue yet again. I'd like to select several non-adjacent columns for plotting. I can use the the worksheet -s c1 r1 c2 r2 to plot columns that are next to each other but can't seem to figure out how to select non-adjacent columns for plotting, say for example only columns 3, 7, and 12.
Help for a labtalk command to do this?
many thanks, -carl |
| 5 L A T E S T R E P L I E S (Newest First) |
| jab95005 |
Posted - 06/16/2003 : 3:39:51 PM Thanks much, Mike!
James
|
| Mike Buess |
Posted - 06/16/2003 : 3:32:15 PM This will select all odd-numbered columns...
for(i=1;i<=wks.ncols;i+=2) wks.colSel(i,1);
For even numbers start with i=2.
Mike Buess Origin WebRing Member |
| jab95005 |
Posted - 06/16/2003 : 3:10:00 PM what if i want to select every other column? can someone please write a script for that? thanks. |
| celarson |
Posted - 06/11/2003 : 3:47:53 PM Mike,
Works like a charm. Been staring at the manual too long. Missed wks.colSel altogether. Thanks for the quick and helpful reply.
-carl |
| Mike Buess |
Posted - 06/11/2003 : 1:40:20 PM Hi Carl,
This works in Origin 7...
wks.colsel(3,1); wks.colsel(7,1); wks.colsel(12,1);
Use 0 for the 2nd argument to deselect.
Mike Buess Origin WebRing Member |