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
 delete variables

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
Flavs Posted - 09/07/2006 : 10:31:56 AM
Origin Version (Select Help-->About Origin): 7.5
Operating System: win xp sp2

I´m having some problems with my scripts due to the problem that all the variables are global. how do I clear all the variables? some of the variables?, Can I define local variables?

By the way I know that the problems are with the variables because if I change the names of the variables, the scripts start working.

Thanks.
4   L A T E S T    R E P L I E S    (Newest First)
Laurie Posted - 08/19/2010 : 10:19:20 AM
What version do you have? In Origin 8.1:

"delete -v" deletes numeric variables
"delete -vs" deletes string variables but this does not work with %N which is a string register. To clear the contents simply use the following:

%N="";

OriginLab Technical Support
SvenP Posted - 08/19/2010 : 08:37:59 AM
It is not working for me. Also my script is not working anymore.

del -v %N;
%N=;
BookAu30wG830B
Flavs Posted - 09/10/2006 : 12:17:05 PM
Thanks!! That helps.
Mike Buess Posted - 09/07/2006 : 10:48:09 AM
del -v var1; // delete the variable var1
del -v var*; // delete all variables whose names start in var

Local LabTalk variables are not supported so it's good practice to initialize relevant variables at the start of the script that uses them. Also helps to delete them at the end of the script.

Mike Buess
Origin WebRing Member

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