CopyRowAttFromArray

Declaration: TDataTable.CopyRowAttFromArray (SrcVec: TIntArray; FirstRow: integer): integer;
The function CopyRowAttFromArray copies the row attributes from the integer array SrcVec. The parameter FirstRow specifies the first row which is changed. FirstRow can become negative to allow to shift the attributes along the entire data table.

The function returns the following error codes:

 0 ... everything is OK, data has been copied
-1 ... SrcVec has zero length
-2 ... the parameter FirstRow is out of range (valid range is -length(SrcVec)..NrOfRows)