TSubstringList.DelimitedText Property

property DelimitedText: Substring read GetDelimitedText write SetDelimitedText;

The items joined by Delimiter, each quoted by QuoteChar where it holds QuoteChar, Delimiter or, without StrictDelimiter, a character up to the space.

Returns: Substring

Remarks:

A single empty item is two QuoteChars; with QuoteChar #0 nothing is quoted. Writing it replaces the items (SetDelimitedText).

Examples

A field with a space is quoted.

uses Substr;

procedure Example;
var List: TSubstringList;
begin
    List := TSubstringList.Create(2);
    try
        List.Add('a b');
        List.Add('c');
        Assert(List.DelimitedText = '"a b",c');
    finally
        List.Free;
    end;
end;
See Also: TSubstringList.SetDelimitedText, TSubstringList.Delimiter, TSubstringList.QuoteChar, TSubstringList.StrictDelimiter, TSubstringList.CommaText