cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
0 Kudos

dt << Delete Table Variables()

What inspired this wish list request? Please describe the current issue that needs improvement or the problem to be solved that is not easy or possible right now, with an example use case. 

There is an option in JSL to delete table scripts (plural) but not for deleting table variables. Please make this function plural as well, and accept either a single variable or an array.

 

What is the improvement you would like to see? Please describe the idea for improving JMP. Please include mock-ups, wireframes, screenshots, scripts, other documents or examples from other software that help describe the change you would like to see. 

Add function in JSL for "dt << Delete Table Variables()"

 

Why is this idea important? Please describe the value to you and/or other users if the idea is implemented (for example, ease of use, must have,…).

Standardize JSL functions to improve software development speed, readability, and quality.

 

3 Comments
hogi
Level XII

While waiting for Kudos, you could use this script - maybe add it to a toolbar or link it to a Keybord Shortcut ...

Names Default To Here( 1 );

remove Table Variables = Function( {},
	{default local},
	tableVariableNames = current data table() << Get Table Variable Names;
	For Each( {variable}, tableVariableNames, current data table()  << Delete Table Variable( variable ) );
);

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << New Table Variable( "x", 5 );
dt << New Table Variable( "text", "hello" );

wait(2);

remove Table Variables();
hogi
Level XII

just learned about 

<< Get Table Variable Names;

; )
-> much shorted code now

Status changed to: Acknowledged

Thank you for sharing this idea!