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



Copy2DRowTo1DArray


Unit:SDL_openarrays
Class: none
Declaration: function Copy2DRowTo1DArray (Src: TDouble2DArray; Row, FirstCol, LastCol: integer; var Dest: TDoubleArray; DestElem): integer;

The function Copy2DRowTo1DArray copies the contents of the row Row of the two-dimensional source array Src to the one-dimensional destination array Dest. All columns of the row Row from given indices FirstCol to LastCol will be copied to cell DestElem and the subsequent ones. Indices are 0-based. Setting both parameters FirstCol and LastCol to zero values defaults to the entire row.

The function returns the following error codes:
 0 ... everything is OK
-1 ... Src has size zero size
-2 ... FirstCol and/or LastCol do not constitute a valid range
-3 ... Row is not valid
-4 ... the parameter DestElem is out of range (valid range: 0 to length(Dest)-1)


Last Update: 2023-Feb-06