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: TNTabEd
Declaration: procedure AssignAnotherDataMatrix (NewDMat: TDataTable);

The method AssignAnotherDataMatrix allows an external data table NewDMat to be assigned to the table editor of TNTabEd. Applying this method destroys the internal data table and assigns NewDMat instead of it. The dimensions of the other components of TNTabEd (row and column names, column decimal point vector, state array, and class information vector) are adjusted accordingly. The contents of the table can be accessed by using the identifier Data.

Note 1: The OnChange event of the data table NewDMat is redirected to be used by TNTabEd.

Note 2: An assigned external data table is not destroyed if the table editor is destroyed (in contrast to the original internal matrix, which is removed in this case).

Last Update: 2012-Okt-20