Skip to content

TStrings.SetStrings

Replace the strings with the passed strings.

Declaration

Source position: classesh.inc line 1110

public 
procedure SetStrings(TheStrings: TStrings);  virtual;  overload; overload;

procedure SetStrings(TheStrings: Array of string = string);  virtual
                    ;  overload; overload;

Description

SetStrings sets the strings of the stringlist to the specified values in TheStrings. The values can be specified as another stringlist or as an array of strings. In difference with the Assign method it does not copy all other properties.

Internally it clears the array and calls TStrings.AddStrings.

See also

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