Please examine this example.. , done with Lazarus 2.0.6 release.
procedure TForm1.Button5Click(Sender: TObject);
Var
S :String;
L:TStringList;
begin
L := TStringList.Create;
L.StrictDelimiter :=True;
S:= '"1 One", "2 Two", "3 There"';
L.DelimitedText := S;
Memo1.Lines.Text := L.Text; {experiment here using L.DelimetedText and L.Text}
L.Free;
end;
--Results-
1 One
"2 Two"
"3 There"
---
If you use L.DelimetedText it will add a " " around the string, I guess that is how it suppose to work.
But using just TEXt, you see that it has quotes but this isn't coming from getting the final text this is from when it reads the initial text using StrictDelimited, it stores them with those quotes.
From what I've read from the Delphi help, the quotes are to be used as guides to resolve the text within to storage into the StringList. They aren't suppose to actually store the quotes too, unless you have a double quote there.
The strictDelimited is suppose to ignore spaces as separators but it looks like its doing more than that.
I looked at the code that handles that, it leaves me with no words to describe it.
I think I can come up with a code frag that is efficient and works as subscribed.
Unless this has already been fixed which I really don't think it has, it needs to be..