[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Assigns one collection to another.
Source position: classesh.inc line 403
public procedure TCollection.Assign( |
Source: TPersistent |
); override; |
Assignassigns the contents of one collection to another. It does this by clearing the items list, and adding as much elements as there are in the Sourcecollection; it assigns to each created element the contents of it's counterpart in the Sourceelement.
Two collections cannot be assigned to each other if instances of the ItemClassclasses cannot be assigned to each other.
If the objects in the collections cannot be assigned to one another, then an EConvertErroris raised.
|
Assign the contents of one class to another. |
|
|
Basic object that is managed by a TCollectionclass. |