cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
vince_faller
Super User (Alumni)

clear all variables in the here namespace

is there any way to delete the here namespace?  Or more to the point, all the variables in it without knowing the variable names?

namespace("here") << Delete

doesn't seem to work.  I could << Get contents and for through it, but I'm just wondering if there's a better way.  

Vince Faller - Predictum
1 ACCEPTED SOLUTION

Accepted Solutions
mpl34
Level III

Re: clear all variables in the here namespace

Does this work:

 

namespace("here")<<remove(namespace("here")<<getkeys);

 

At least you don't have to for through it.

View solution in original post

3 REPLIES 3
txnelson
Super User

Re: clear all variables in the here namespace

See if this will do what you want:

Names Default To Here( 1 );
x=44;
show(here:x);
clear symbols();
show(here:x);
Jim
vince_faller
Super User (Alumni)

Re: clear all variables in the here namespace

nah, I want only the here namespace to be deleted (even more than cleared really)

::y = 14;
Names Default To Here( 1 );
x=44;
show(here:x);
show(::y);
delete symbols();
show(::y);
Vince Faller - Predictum
mpl34
Level III

Re: clear all variables in the here namespace

Does this work:

 

namespace("here")<<remove(namespace("here")<<getkeys);

 

At least you don't have to for through it.