Hi all,
Just need a little more help and i think I'm done, is anyone able to identify why whis code wont run???
Names Default To Here ( 1 );
Clear Symbols ();
pb = Page Break Box();
fileopen= "\\\desktop\Kate\TIV\JMP Data.jmp";
var_name = New Window ("Variable Analysis", << Modal, << Return Result,
Text Box ("Please enter Variable to analyse"),//Create the display box
HListBox(
LineupBox (NCol (2),
Text Box ("Enter Variable Name"), nameVar = textEditBox(" FBV TIV (%w/v)"),
), // end of lineupbox
LineupBox ( NCol (1), ButtonBox ("OK"), ButtonBox ("Cancel"))
) // end HlistBox
);
show (var_name, var_name ["nameVar"] );
If (var_name ["Button"] == -1,
Caption (" Wait...Aborting..."); Wait (3) ; Caption(Remove); Throw());
StatusMsg ("Processing next steps");
RemoveFrom (var_name, NItems(var_name)); // Removes the last item "Button 1" from the assignment list
Eval List(var_name); // the assignment from the display box are run
Show ( var_name, nameVar );
Eval(
Substitute(
Expr(
Process Capability(
Process Variables( Column (As Column (nameVar)) ) ),
Spec Limits(
Name( "" )(LSL( 0.008 ), Target( . ),
USL( 0.012 ))
),
Spec Limits Dialog( "Yes" ),
Individual Detail Reports( 1 ),
Capability Box Plots( 1 ),
Goal Plot( 1 ),
Capability Index Plot( 1 ),
SendToReport(
Dispatch(
{__myvar__},
"1",
ScaleBox,
{Label Row( Label Orientation( "Perpendicular" ) )}
)
)
),
Expr( __myvar__ ), nameVar
)
)
);Thanks All