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
 Problem running script twice in one project

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
woodster Posted - 06/17/2014 : 08:08:53 AM
Origin Ver. and Service Release: 9.1.0 (32-bit) Sr1 b237
Operating System: Windows 7 64 bit

I have a script which runs hilbert transforms on a load of data files, does some calculations and plots the resultant data. This all seems to work fine, and I have assigned it to a custom button.

After running the code, once everything has completed I want to move to a new folder, change the files to be imported, and run it again. However, I just get the following error message:

Failed to resolve range string, VarName = book, VarValue = <active>

It seems like perhaps my variables are getting confused. Is there a way to reset everything upon each run of the code? I'm pretty new to this, so sorry if this is a silly question. Although I have found similar errors on the forum, none of the suggested solutions seems relevant.

Thanks
1   L A T E S T    R E P L I E S    (Newest First)
lkb0221 Posted - 06/23/2014 : 5:49:05 PM
hi,

You can try using delete command at the end of your script to clean up all the remaining variables.
http://www.originlab.com/doc/LabTalk/ref/Delete-cmd

Zheng
OriginLab

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