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
 Origin Forum
 script to set column labels

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
juannim Posted - 09/26/2007 : 3:26:05 PM
Origin Version (Select Help-->About Origin): 7.5
Operating System:xp
I use the following script to label my columns. 15 of the labels are numbers that iterate up in multiples of 10, but the first 2 in each set (of 17) are text... ie. "trp" and "scatt". The script works fine, except that the columns that should be labeled as trp or scatt have blank labels. What am I doing wrong? Thx. Jonathan
2   L A T E S T    R E P L I E S    (Newest First)
juannim Posted - 09/26/2007 : 3:34:55 PM
Forget it. I finally noticed the missing $'s. Thanks for reading, though. jonathan
juannim Posted - 09/26/2007 : 3:29:49 PM
here's the script:
del wcol(1);
del wcol(1);
loop(ii, 0, 2){
wks.col(17*ii+1).label="scatter";
wks.col(17*ii+2).label="trp";
loop(i, 1, 15) {
wks.col$(ii*17+i+2).label$=$(280+10*i);
};
};
wks.labels();

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