cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
hogi
Level XIII

get symbols()

In JSL, there is a function get namespaces() to get al ist of all namespaces with all defined symbols.

... and a function show symbols() to show all symbols of all namespaces : print to log.

is there something like get symbols(), to get the list of symbols as a return value?

1 ACCEPTED SOLUTION

Accepted Solutions
hogi
Level XIII

Re: get symbols()

ok, thanks. I hoped there was a function ...

get symbols = Function( {},
	{default local},
	Names Default To Here( 1 );
	nsNames = Get Namespace Names();
	Insert Into( nsNames, "global" );
	allSymbols = Transform Each( {NS}, nsNames,
		tmp = Associative Array();
		tmp["NS"] = NS;
		tmp["content"] = Namespace( NS ) << get contents;
		tmp;
	);
	allSymbols
);
get symbols()

View solution in original post

2 REPLIES 2
jthi
Super User

Re: get symbols()

You will most likely have to write your own function to collect the symbols which might be quite simple to do, depending on what you are trying to do it the end.

-Jarmo
hogi
Level XIII

Re: get symbols()

ok, thanks. I hoped there was a function ...

get symbols = Function( {},
	{default local},
	Names Default To Here( 1 );
	nsNames = Get Namespace Names();
	Insert Into( nsNames, "global" );
	allSymbols = Transform Each( {NS}, nsNames,
		tmp = Associative Array();
		tmp["NS"] = NS;
		tmp["content"] = Namespace( NS ) << get contents;
		tmp;
	);
	allSymbols
);
get symbols()

Recommended Articles