DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


Copy2Dto2DArray

Declaration: Copy2Dto2DArray (Src: TDouble2DArray; SrcColLo, SrcRowLo, SrcColHi, SrcRowHi, DstCol, DstRow: integer; var Dst: TDouble2DArray): integer;
Copies part of the two-dimensional array Src into the two-dimensional array Dst. The range to be copied is specified by the parameters SrcColLo, SrcRowLo, SrcColHi, SrcRowHi, the destination location is determined by [DstCol,DstRow]. The destination matrix must be large enough to accommodate all copied cells.

The function returns the following error codes:

 0 ... everything is OK
-1 ... the source matrix has zero size
-2 ... any of the parameters is out of range, or the destination array is too small