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


FillInt2DArraySerial

Declaration: FillInt2DArraySerial (var Arr: TInt2DArray; Offset, Diff: integer): integer;
The function FillInt2DArraySerial fills the two-dimensional integer array Arr with a running index so that each cell holds a unique value, starting with Offset at the first cell. The value is incremented by Diff for each succeeding cell. The array is filled columnwise.

The function returns the following error codes:

 0 ... everything is OK
-1 ... the array Arr has zero size