CopyArrayRow

Declaration: CopyArrayRow (SrcArr: TDouble2DArray; Row, ColLo, ColHi: integer; var DstArr: TDoubleArray): integer;
The function CopyArrayRow copies the contents of the given row Row of the two-dimensional source array SrcArr to the one-dimensional destination array DstArr. All columns of the row Row from given indices ColLo to ColHi will be copied. Indices are 0-based. Setting both parameters ColLo and ColHi to zero values defaults to the entire row.

The destination array DstArr is automatically resized to accomodate the results.

The function returns the following error codes:

 0 ... everything is OK
-1 ... SrcArr has size zero size
-2 ... ColLo and/or ColHi do not constitute a valid range
-3 ... Row is not valid