dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
ar = dt << GetAsMatrix( {4} );
txt1 = "abc=" || Char( ar );Yo uso el código anterior no coincide, mucho []
Lo que necesito es el siguiente resultado:
¡Gracias!
<BR />txt1 = "abc=59, 61, 55, 66, 52, 60, 61, 51, 60, 61, 56, 65, 63, 58, 59, 61, 62, 65, 63, 62, 63, 64, 65, 64, 68, 64, 69, 62, 64, 67, 65, 66, 62, 66, 65, 60, 68, 62, 68, 70"
Aparentemente, el analizador JSL está forzando los números en una matriz.Le sugiero que convierta el problema en soporte de JMP para recibir sus comentarios.Mientras tanto, aquí hay una solución alternativa:
names default to here(1);
// Open Data Table: big class.jmp
// → Data Table( "big class" )
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
ar = dt << GetAsMatrix( 4 );
txt1 = "abc=" || char(ar[1]);
for(i=2,i<=nitems(ar), i++,
txt1 = txt1 || ", " || char(ar[i])
);
show(txt1);
Si sabe que solo será una matriz, podría cortar el [].
txt1 = "abc=" || Substitute(Char( ar ), "[", "", "]", "");