キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to move from signal modeling to system modeling at the first JMP Aerospace Analytics webinar. Register. June 18, 1 p.m. US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
言語を選択 翻訳バーを非表示
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 件の受理された解決策

受理された解決策
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.

元の投稿で解決策を見る

3件の返信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.

おすすめの記事