Hola,
Tengo un script en el que agregué una nueva columna llamada "Proceso paralelo" pero "Hola" no aparece en la tabla de datos cuando se ejecuta el script. La columna está completamente en blanco, ni siquiera faltan puntos.
parallelProcessColumn = "Parallel Process";
dt << New Column( parallelProcessColumn );
Column( dt, parallelProcessColumn ) << Data Type( Character );
For( k = 1, k <= N Rows( dx ) - 1, k++,
Current Data Table( dt );
For Each Row(
hours = (Hour( Num( dt:colAutomatically ) ));
minutes = (Minute( Num( dt:colAutomatically ) ));
seconds = (Second( Num( dt:colAutomatically ) ));
colAutomaticallyInSeconds = (hours * 3600) + seconds + (minutes * 60);
If( colAutomaticallyInSeconds < startTime,
dt:newInstructionsColumn = ("PREPARATION")
);
If(
Row() >= startRow & Row() > 1 & colAutomaticallyInSeconds >= startTime & dx:colManuallyStart[k] <= dt
:stopClock[Row()],
dt:newInstructionsColumn[Row()] = dx:colInstructions[k]
);
If(
k > 1 & Row() >= startRow & dx:colManuallyStart[k] == dx:colManuallyStart[k - 1] & dx
:colManuallyStart[k] <= dt:stopClock[Row()],
dt:parallelProcessColumn = "Hi"
);
If( k > 1 & dx:colManuallyStart[k] <= dt:stopClock[Row()] & dt:newInstructionsColumn == "MIX 10 MINUTES",
dt:newInstructionsColumn = dt:newInstructionsColumn || " AFTER " || dx:colInstructions[k - 1]
);
);
);
For( i = 2, i <= N Cols( dt ) - 3, i++,
Column( dt, i ) << Data Type( Numeric ) << Set Modeling Type( Continuous )
);
Column( dt, N Cols( dt ) ) << Data Type( Numeric ) << Set Modeling Type( Continuous );
Column( dt, "Parallel Process" ) << Data Type( Character );
Column( dt, "Stop Clock (seconds)" ) << data type( Numeric ) << Modeling Type( Continuous ) <<
Format( "hr:m:s", 10 );
Column( dt, "Time" ) << data type( Numeric ) << Modeling Type( Continuous ) << Format( "hr:m:s", 10 );
newInstructionsColumnWidth = dt:newInstructionsColumn << Get Display Width;
dt:newInstructionsColumn << Set Display Width( 8 * newInstructionsColumnWidth );
edición: el tema y el cuerpo se agregaron de nuevo a la publicación después de que se eliminaron por error
¿El registro dice algo? Si publicas una tabla de datos compatibles, sería mucho más fácil ayudarte.