Skip to content

TStrings.Assign

Assign the contents of another stringlist to this one.

Declaration

Source position: classesh.inc line 718

public 
  procedure Assign(Source: TPersistent);  Override;

Description

Assign replaces the contents of the stringlist with the contents of Source if Source is also of type TStrings. Any associated objects are copied as well.

See also

Name Description
TPersistent.Assign Assign the contents of one class to another.
TStrings.Add Add a string to the list
TStrings.AddStrings Add contents of another stringlist to this list.