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
 loop wo -c long name
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

dababneh@i

Germany
2 Posts

Posted - 03/15/2001 :  08:19:00 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
A simple script to create a worksheet with a simple loop to add columns is behaving strangly with Origin Pro 6.1 SP 2.

win -n data try;
wks.colWidth=12;
loop (i,1,8) {wo -c columnnum$(i);};

The expected is a worksheet with 8 columns named columnnum1.....upto columnnum8....But what I get is a worksheet with the first column named columnnum then counting starts from columnnum1 to columnnum7.
The problem is clearly related to long column names. This simple loop was working properly with Origin Pro 6.
Any idea...!

Laurie

USA
404 Posts

Posted - 03/15/2001 :  2:51:22 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
This is indeed a bug with 6.1 SR 2, and as you say, is clearly related to the length of the column name.

Looks like for now you will need to use something like the following:

loop(ii,1,8)
{
worksheet -c colnum$(ii);
}

Laurie

OriginLab Technical Support
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