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 for Programming
 LabTalk Forum
 Adding columns makes scripts in-operable

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
Nilsdalby Posted - 01/26/2018 : 03:01:46 AM
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:Origin 2017 SR2 on a win 10 platform

Hi

Im seeing a problem with many of my scripts after i have added some columns and renumerating all to A1, A2... etc. I click off the excel cell notation. An example is this script which put many columns (19) content in a long column:

loop(i,1,19){
int b=count(col($(i+2)));
Col(A2)[i+2]=b;
sum(col(A2));
c=sum.total;
Copydata irng:=[Book1]CollectAll!col($(i+2))[1:$(b)] orng:=[Book1]CollectAll!col(A1)[$(c-b+1):$(c)] clear:=0;
};

If i add cols or rename/renumerate to A1, A2..., this script stops working but gets functional again after turning origin off and back on. Some insight into what is happening here appreciated, Thanks
1   L A T E S T    R E P L I E S    (Newest First)
yuki_wu Posted - 01/26/2018 : 04:54:54 AM
Hi,

Did you see any error message if the script failed? Also, could you please check if you declared the variable b or c outside this script?

Regards,
Yuki
OriginLab

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