Resize (DataTable)
Declaration: |
TDataTable.Resize (NrCols, NrRows: integer); |
The method Resize serves to change the dimensions of the matrix on the fly. The parameters NrCols and NrRows define the intended size of the matrix (number of columns and number of rows). Any excess table elements which are not covered by the original matrix are set to their default values.
|
Hint: |
The method Resize is much more efficient than assigning the new table dimensions to the properties NrOfColumns and NrOfRows. It is therefore strongly recommended to use Resize whenever both dimensions of the table have to be changed. |
|