CopyDataFromArray

Declaration: TDataTable.CopyDataFromArray (SrcArray: TDouble2DArray);
The function CopyDataFromArray copies the open array SrcArray to the data table. The function returns a zero value if the copying process succeeds. If the size of SrcArray does not match the size of the data array a value of -1 is returned. In this case the data values of SrcArray which fit into the data table are copied, any excess values are ignored.

Please note that copying the data does not influence the type of variables (see section Nominal and Ordinal Data for details). If a particular column contains nominal values, the copied data are considered to be the corresponding ordinals.