Sign in Join
FPDoc Onlineexperiment

TStrings.SetStrings procedure

Member of TStringspublicIn unit Classes

Replace the strings with the passed strings.

Declaration

pascal
procedure SetStrings(TheStrings: TStrings); virtual; overload
procedure SetStrings(TheStrings: Array of string = 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 AddStrings.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.