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


CopyRowAttFromArray

Declaration: TDataTable.CopyRowAttFromArray (SrcVec: TIntArray; FirstRow: integer): integer;
CopyRowAttFromArray copies the one-dimensional integer array SrcVec to the row atributes of the data table. The parameter FirstRow is the index of the target row of the data table. The row attributes of all rows starting from FirstRow are set to the corresponding cells of SrcVec.

The function returns the following error codes:

 0 ... everything OK
-1 ... SrcVec has zero length
-2 ... FirstRow is out of range (valid range: -length(SrcVec) to NumOfRows)