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 for Programming
 LabTalk Forum
 how to update script files???
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

CYNDIRILEY

2 Posts

Posted - 07/06/2012 :  11:08:53 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I don't know if I am in the correct forum but I hope I am.

I am updating my files from Origin 6.1 to Origin 8.1 and my worksheet scripts won't work. I was wondering if someone could help me.

I am trying to get data from one column and put it in another. This is the script I have that will not work anymore.

for(i=1,j=1;i<200;i+5,j+1){col(U1)[j]=(col(WATEREL.)[i])}

If someone could help me update this to work I would really appreciate it.

Thanks

Laurie

USA
404 Posts

Posted - 07/06/2012 :  6:17:48 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I tested that script here and it runs fine; however, I tried with a new project file created in Origin 8.x.

It might be best if you can email us at tech@originlab.com. You can include your Origin project file. The column name with the '.' at the end looks a bit odd.

Thank you.

OriginLab Technical Support
Go to Top of Page

CYNDIRILEY

2 Posts

Posted - 07/11/2012 :  07:52:12 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank You, I will do that.
Go to Top of Page

greg

USA
1378 Posts

Posted - 07/11/2012 :  1:24:23 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Of course for only 200 rows it won't make much difference, but here is the Origin 8.1 way of doing it:

range rin = col(WATEREL.);
range rout = col(U1);
wdelrows ir:=rin del:=4 start:=2 orng:=rout;
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