The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Class: TDataTable
Declaration: [1] function CopyDataFromArray (SrcArray: TDouble2DArray): integer;
[2] function CopyDataFromArray (SrcArray: TInt2DArray): integer;

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.

Last Update: 2020-Feb-16