procedure SetCommaText(const Value: string); overload;
Replaces the items by the fields of Value, delimited by a comma and quoted by a double quote; Value takes every text kind.
| # | Name | Description |
|---|---|---|
| 1 | Value | The fields; it may be an item of this list. |
Result: stored in self (calling object)
Remarks:
DelimitedText with Delimiter ',' and QuoteChar '"', whatever the list's own are.
Examples
Comma text.
uses Substr;
procedure Example;
var List: TSubstringList;
begin
List := TSubstringList.Create(8);
try
List.SetCommaText('x, "y z"');
Assert(List.Count = 2);
Assert(List[1] = 'y z');
Assert(List.CommaText = 'x,"y z"');
finally
List.Free;
end;
end;