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


Class: none
Declaration: [1] function CopyArrayRow (SrcArr: TBool2DArray; Row, ColLo, ColHi: integer; var DstArr: TBoolArray): integer;
[2] function CopyArrayRow (SrcArr: TInt2DArray; Row, ColLo, ColHi: integer; var DstArr: TIntArray): integer;
[3] function 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 Row from given indices ColLo to ColHi will be copied. Indices are 0-based. 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

Last Update: 2017-Nov-24