Delphi: StringList Delimiter is always a space character even if Delimiter is set
- by pr0wl
I am having trouble with the delimiter in the TStringList Class. Take a look:
var
s: string;
sl: TStringList;
begin
sl := TStringList.Create;
s := 'Users^foo bar^bar foo^foobar^barfoo';
sl.Delimiter := '^';
sl.DelimitedText := s;
ShowMessage(sl[1]);
end;
sl[1] SHOULD return 'foo bar'
sl[1] DOES return 'foo'
It seems that the…