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
 strange behaviour of worksheet command
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

petr.hanys

Czech Republic
Posts

Posted - 02/24/2005 :  01:59:50 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5 SR4
Operating System: win 98

Hi,
I tried to add new columns to the worksheet (work -a 2;) command and set one of them as x col. (work -t $(colcnt) 4;). But, if there had been already some x col. in that worksheet, it didn't work and the code ended at the point.

Thanks much for your help.

Mike Buess

USA
3037 Posts

Posted - 02/24/2005 :  08:27:07 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Works fine for me. Perhaps colcnt is undefined. BTW, there is no need for the $() substitution...

work -a 2;
colcnt=wks.ncols-1;
work -t colcnt 4;

Mike Buess
Origin WebRing Member
Go to Top of Page

petr.hanys

Czech Republic
Posts

Posted - 02/24/2005 :  10:34:33 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Colcnt is OK the problem occures only if there is another x column in the worksheet. But when i omit following
create.wksName$ = %B;
create.delete(temp);
from the code, there's no problem.

Thanks anyway
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