Origin Version (Select Help-->About Origin): 7.5 Operating System: win xp sp2
Im 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.
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.
"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: