API: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 the strings in the Strings array, possibly associated Objects, and some other properties of the current TStrings object, from the Source object.

System.Classes.TStringList.Assign inherits from System.Classes.TStrings.Assign. All content below this line refers to System.Classes.TStrings.Assign.

Sets the strings in the Strings array, possibly associated Objects, and some other properties of the current TStrings object, from the Source object.

Use Assign to set the properties of the TStrings object from the Source object. If Source is of the TStrings type, Assign copies the following properties:

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

See Also

Code Examples