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



CopyDataRowToArray


Unit:SDL_datatable
Class: TDataTable
Declaration: function CopyDataRowToArray (Row: integer; var DstArray: TDoubleArray): integer;

The function CopyDataRowToArray copies the numeric data of the row specified by the parameter Row to the open array DstArray. The size of DstArray is automatically adjusted to the number of columns of the data table. Nominal data values of the data table are replaced by their ordinals when copying them to DstArray.

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