I want to run a script (perhaps multiple times) and part of the script embeds a script into the data table.
E.g., dt << New Script ("Plot", varchart1= variability Chart(......
Every time I run the main script it will create scripts Plot 1, Plot 2 ect... in the data table.
Go to Solution
Here is one way to handle your question
Names Default To Here( 1 );
dt = Current Data Table();
theScripts = dt << get table script names;
If( N Rows( Loc( theScripts, "Plot" ) ) == 0,
dt << New Script( "Plot", varchart1 = variability Chart(.......
View solution in original post
Nice! It works.
I tried something very similar but did not have the N rows. That is a great trick!