Hi,
l am trying to incorporate some display boxes in some code, i was hoping that entering a variable name, from a data table, into the display box would populate into the shaded areas in the Syntax below, l have tried using (var_name["nameVar"] into the highlighted areas to no avail, does anyone have any ideas???
Names Default To Here( 1 );
Clear Symbols();
pb = Page Break Box();
fileopen = "\\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
H List Box(
Lineup Box( N Col( 2 ), Text Box( "Enter Variable Name" ), nameVar = Text Edit Box( "FBV TIV (%w/v)" ), ), // end of lineupbox
Lineup Box( N Col( 1 ), Button Box( "OK" ), Button Box( "Cancel" ) )
) // end HlistBox
);
Show( var_name, var_name["nameVar"] );
If( var_name["Button"] == -1,
Caption( " Wait...Aborting..." );
Wait( 3 );
Caption( Remove );
Throw();
);
Status Msg( "Processing next steps" );
Remove From( var_name, N Items( 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 );
distrib = New Window( "FBV TIV (%w/v)",
Distribution(
Continuous Distribution(
Column( :Name( "FBV TIV (%w/v)" ) ),
Normal Quantile Plot( 1 ),
Fit Distribution( Normal( Goodness of Fit( 1 ) ) )
),
SendToReport(
Dispatch( {"FBV TIV (%w/v)"}, "", Picture Box( 5 ), {Set Summary Behavior( "Collapse" )} )
)
)
) << Move Window( 634, 43 ) << Size Window( 807, 861 ) << Set Window Icon( "Distrib" );
Thanks to all replies