Sono su JMP13 e ho capito da qui che non posso avere più output da una funzione a meno che non utilizzi le liste. Quindi ho messo insieme il seguente script e funziona come previsto.
Names Default To Here (1);
delete symbols ();
clear log ();
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
getDistChart = Function({ColName, _LSL, _USL}, {distChart},
New Window(""||ColName||" distribution",
distChart1 = dt <<DISTRIBUTION></DISTRIBUTION>
Tuttavia, quanto segue non funziona
toPass= Report(dist[1])[Outline Box("weight" ), Outline Box( "Summary Statistics" ), Table Box( 1 ), Number Col Box(1)]<< get (1);
e mi chiedo se sto commettendo un errore nella sintassi per l'utilizzo di un argomento in Report()?
Prova ad aggiungere Eval List all'interno della tua funzione:
op = EvalList({distChart1, distChart2});