cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Register to see how to import and prepare Excel data on Jan. 30 from 2 to 3 p.m. ET.

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