Hallo,
Ich habe ein Skript, in dem ich eine neue Spalte mit dem Namen "Parallel Process" hinzugefügt hat, "Hi" erscheint jedoch nicht in der Datentabelle, wenn das Skript ausgeführt wird. Die Spalte ist vollständig leer, nicht einmal fehlende Punkte.
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 );
edit: Betreff und Textteil werden wieder hinzugefügt, nachdem sie versehentlich gelöscht wurden
Sagt das Protokoll etwas? Wenn Sie eine kompatible Datentabelle veröffentlichen, ist es viel einfacher, Ihnen zu helfen.