Unit 'Classes' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TStrings.SetStrings

Replace the strings with the passed strings.

Declaration

Source position: classesh.inc line 998

public procedure TStrings.SetStrings(

  TheStrings: TStrings

); virtual; overload;

procedure TStrings.SetStrings(

  TheStrings: array of string

); virtual; 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

TStrings.Assign

  

Assign the contents of another stringlist to this one.

TStrings.AddStrings

  

Add contents of another stringlist to this list.


Documentation generated on: Dec 25 2024