The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Class: TDataTable
Declaration: function CopyDataRowFromArray (Row: integer; SrcArray: TDoubleArray): integer;

The function CopyDataRowFromArray copies the numeric data contained in ScrArray into the row Row. If the length of the vector SrcArray is less than the number of columns only the first values of row Row are filled, the remaining cells are left unchanged. If the length of the source vector is greater than the number of columns then only the first NrOfColumns values are copied, the rest is ignored.

The function returns the following error codes:

 0 ... everything is OK, data has been copied
-1 ... invalid parameter Row (valid range is 1..NrOfRows)

Hint: Please note that the method CopyDataFromArray is more flexible as it supports partial copying.

Last Update: 2023-Dec-14