cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
ValeriaL
Level I

passing a variable in the Set Property fore a column

Hi all,

 

can somebody explain how I can pass a variable into, for example, spec limits?

I want the spec limit for the column "dt:frac" to be "uls_value"

So I define the  value:

usl_value=0.05;

 

and then I tried:

 

 

dt:frac <<Set Property( "Spec Limits", {USL(eval(usl_value)), Show Limits( 1 )} );
dt:frac <<Set Property( "Spec Limits", {USL(expr(usl_value)), Show Limits( 1 )} );
dt:frac <<Set Property( "Spec Limits", {USL(usl_value), Show Limits( 1 )} );They are all scriptable but none does the trick.

 

Thanks

1 REPLY 1
ErraticAttack
Level VI

Re: passing a variable in the Set Property fore a column

In JSL lists are unevaluated, so anything within a list that you want evaluated you'll need to wrap in an Eval( Eval Expr( ... ) ) function, such as this:

Eval( Eval Expr(
	dt:frac << Set Property( "Spec Limits", {USL( Expr( usl_value ) ), Show Limits( 1 )} )
) )
Jordan