Sign in Join
FPDoc Onlineexperiment

TStrings.DelimitedText property

Member of TStringspublicIn unit Classes

Get or set all strings in the list in a delimited form.

Declaration

pascal
property DelimitedText: string read GetDelimitedText write SetDelimitedText;

Description

DelimitedText returns all strings, properly quoted with QuoteChar and separated by the Delimiter character.

Strings are quoted if they contain a space or any character with ASCII value less than 32.

The CommaText property is a special case of delimited text where the delimiter character is a comma and the quote character is a double quote.

If StrictDelimiter is set to True, then no quoting is done (The QuoteChar property is disregarded completely): the returned text will contain the items in the stringlist, separated by the Delimiter character. When writing the DelimitedText property, the text will be split at all occurrences of the Delimiter character; however, when reading, the QuoteChar property will be taken into account.

Setting AddDelimitedText is equivalent to clearing the list and calling AddDelimitedText.

See also

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