Copy2DRowTo1DArray
Declaration: |
Copy2DRowTo1DArray (Src: TDouble2DArray; Row, FirstCol, LastCol: integer; var Dest: TDoubleArray; DestElem: integer): integer; |
The function Copy2DRowTo1DArray copies the contents of the row Row of the two-dimensional array Src to the one-dimensional destination array Dest. All cells of the row Row from given indices FirstCol to LastCol will be copied to DestElem and the subsequent cells. 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)
|
|