[Overview][Constants][Types][Classes][Procedures and functions][Variables] | Reference for unit 'Classes' (#fcl)

# TStrings.SetText

Set the contents of the list from a PChar.

## Declaration

`public procedure TStrings.SetText(`
`TheText: PChar`
`); virtual;`

## Description

SetText parses the contents of TheText and fills the stringlist based on the contents. It regards TheText as a series of strings, separated by end-of-line markers. Each of these strings is added to the stringlist.

## See also

TStrings.Text |  | Contents of the list as one big string.