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....



Assign


Unit: SDL_matrix
Class: TMat4D
Declaration: procedure Assign(Source: TPersistent);

The Assign method assigns one TMat4D to another. The following properties/parameters are copied from the source component:
  • NrOfColumns
  • NrOfRows
  • NrOfLayers
  • NrOfTimeSlots
  • DataID
  • the data
  • the events

Hint 1: In general, the statement Destination := Source; is not the same as the statement Destination.Assign(Source);. The first statement makes Destination refer to the same object as Source, whereas the second statement copies the contents of the object referenced by Source into the object referenced by Destination.

Hint 2: The Clone method is comparable to the Assign method. However cloning a data matrix copies only the data (not any auxiliary information, as for example the DataID), and triggers the OnChange event, while Assign does not.



Last Update: 2023-Feb-06