property StrictDelimiter: Boolean read FStrictDelimiter write FStrictDelimiter;
Whether only Delimiter separates the fields of DelimitedText; False by default, so the characters up to the space separate them too.
Returns: Boolean
Examples
Spaces separate fields unless strict.
uses Substr;
procedure Example;
var List: TSubstringList;
begin
List := TSubstringList.Create(4);
try
List.SetDelimitedText('a b,c');
Assert(List.Count = 3);
List.StrictDelimiter := True;
List.SetDelimitedText('a b,c');
Assert((List.Count = 2) and (List[0] = 'a b'));
finally
List.Free;
end;
end;
See Also: TSubstringList.DelimitedText