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....



CopyDataRowFromArray


Unit:SDL_datatable
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)


Last Update: 2019-Mar-09