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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 script to set column labels
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

juannim

USA
Posts

Posted - 09/26/2007 :  3:26:05 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

juannim

USA
Posts

Posted - 09/26/2007 :  3:29:49 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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();
Go to Top of Page

juannim

USA
Posts

Posted - 09/26/2007 :  3:34:55 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Forget it. I finally noticed the missing $'s. Thanks for reading, though. jonathan
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000