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

TStrings.DelimitedText

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

Declaration

Source position: classesh.inc line 1061

public property TStrings.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 TStrings.AddDelimitedText is equivalent to clearing the list and calling TStrings.AddDelimitedText.

See also

TStrings.Delimiter

  

Delimiter character used in DelimitedText.

TStrings.StrictDelimiter

  

Should only the delimiter character be considered a delimiter.

TStrings.Text

  

Contents of the list as one big string.

TStrings.QuoteChar

  

Quote character used in DelimitedText.

TStrings.CommaText

  

Contents of the list as a comma-separated string.

TStrings.AddDelimitedText

  

Adds a separator-delimited list of strings.


Documentation generated on: Dec 21 2024