System.Classes.TStringList.Assign

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Assign(Source: TPersistent); override;

C++

virtual void __fastcall Assign(TPersistent* Source);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Classes.pas
System.Classes.hpp
System.Classes TStringList

Description

Sets, from a source object, the strings in the list and the possibly associated objects.

Use Assign to set the value of the TStringList object from another object. If Source is of type TStringList, the list is set to the list of the source TStringList object, and if associated objects are supported, any associated objects are copied from Source as well.

If Source is not of type TStringList, the inherited Assign method will set the value of the list from any object that supports TStringList in its AssignTo method.

See Also

Code Examples