How to selectively evaluate variables in New Script() while preserving Expr() for deferred evaluation?
I'm creating a data table script using New Script() that needs to be evaluated later when a user clicks it. I need to substitute some variables at script-creation time (like a file path) while preserving Expr() calls that should only be evaluated when the script actually runs.
file_path = "C:\MyData\slopes.jmp";
dt << New Script("Plot Slopes",
dt_slopes = Open( file_path );
slope_array ...