help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TCollection.Assign

Assigns one collection to another.

Declaration

Source position: classesh.inc line 411

public procedure TCollection.Assign(

  Source: TPersistent

); override;

Description

Assign assigns 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 Source collection; it assigns to each created element the contents of it's counterpart in the Source element.

Two collections cannot be assigned to each other if instances of the ItemClass classes cannot be assigned to each other.

Errors

If the objects in the collections cannot be assigned to one another, then an EConvertError is raised.

See also

TPersistent.Assign

  

Assign the contents of one class to another.

TCollectionItem

  

Basic object that is managed by a TCollection class.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505