||procedure Assign(Source: TPersistent);
The Assign method assigns one vector to another. The following properties/parameters are copied from the source component:
- the data
- the events
||In general, the statement Destination := Source; is not the same as the statement Destination.Assign(Source);. The first statement makes Destination referring 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.
||The Clone method is comparable to the Assign method. However cloning a data vector copies only the data (no auxiliary information) and triggers the OnChange event, while Assign does not.