||procedure AssignAnotherDataMatrix (NewDMat: TMatrix);
The method AssignAnotherDataMatrix allows an external matrix NewDMat to be assigned to the data table. Applying this method destroys the internal data matrix and assigns NewDMat instead of it. The dimensions of the other components of TDataTable (row and column names, cell states, row and column attributes) are adjusted accordingly. The measurement scale of all variables is reset to stInterval.
The contents of the matrix can be accessed by using the identifier NumericData. At the end of the operation the OnResize event is triggered.
||The OnChange and the OnSortExchange events of the matrix NewDMat are redirected to be used by TDataTable.
||An assigned external matrix is not destroyed if the data table is destroyed (in contrast to the original internal matrix, which is removed when an external matrix is assigned).