嗨,
我有一個腳本,我在其中添加了一個名為“Parallel Process”的新列,但在運行腳本時,“Hi”沒有出現在數據表中。該列完全空白,甚至沒有丟失的點。
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 );
編輯:主題和正文在被錯誤刪除後添加回帖子
日誌說什麼嗎?如果您發布兼容的數據表,那麼幫助您將會容易得多。