Hola. Me gustaría crear una secuencia de comandos que cree un nuevo diario con una cantidad variable de gráficos unidireccionales dispuestos de la manera que yo quiero.He intentado varias formas y no puedo resolverlo.¿Alguien me puede ayudar?¡Gracias!
Tratando de escribir algo como esto:
Hlist_MSG1 = "HListBox(( oneway_List[";
Hlist_MSG2 = "] << Informe) << Clone Box, ( noz_stat[";
Hlist_MSG3 = "] < Hlist_MSG4 = "] << Clonar caja)";
nw = Nueva Ventana(nombre, <
vlb = V cuadro de lista (
for(i=1, i<=n_Copias, i++,
lista de evaluación ({Hlist_MSG1,
i;
Hlist_MSG2;
i;
Hlist_MSG3;
1;
Hlist_MSG4;
if(i
));
O así:
HLIST_MSG_LST[i] = "HList Box(( oneway_List[" || char(i) || "] << Informe) << Clone Box, ( noz_stat[" || char(i) || "] <
subs_lista = {};
for(i=1, i<=n_Copias, i++, subs_list [i] = "num("||char(i)||")");
num_lista = {};
for(i=1, i<=n_Copias, i++, num_list [i] = i);
nw = Nueva Ventana(nombre, <
vlb = V cuadro de lista (
for(i=1, i<=n_Copias, i++,
eval(parse(sustituir(HLIST_MSG_LST[i],subs_list[i],num_list[i])));
if(i
));
no importa, fue fácil de implementar, así que no necesito esperar hasta la próxima semana para ver si funciona.
Funciona.
¡¡Gracias!!
Gracias Jim, no podré intentar implementar esto hasta la próxima semana, así que lo actualizaré entonces.Pero esto parece que debería ayudarme.
Aquí hay una metodología con la que he encontrado que es mucho más fácil construir resultados.Creo que va después de lo que está tratando de hacer, pero es más fácil trabajar con él y más fácil de seguir.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\Semiconductor Capability.jmp" );
// Create some structures to hold the results
mainBox = V List Box();
theHBox = H List Box();
// Get the column names for the analysis
colList = dt << Get Column Names( continuous );
// Loop across the columns and generate the analyis, placing
// 4 analyses into an H List Box(), and then when all 4 are
// in the H List Box(), add it to the main V List Box();
For( i = 1, i <= 25, i++,
theHBox << Append( oneway( y( colList[i] ), x( :Site ) ) );
If( Mod( i, 4 ) == 0 | i == 25,
mainBox << Append( theHBox );
theHBox = H List Box();
);
);
// Now create the journal to hold all of the results
nw = New Window( "Results", <<JOURNAL></JOURNAL>