Parsing a string using a delimiter to a TStringList, seems to also parse on spaces (Delphi)
Posted
by Daisetsu
on Stack Overflow
See other posts from Stack Overflow
or by Daisetsu
Published on 2010-06-17T17:15:54Z
Indexed on
2010/06/18
9:53 UTC
Read the original article
Hit count: 516
I have a simple string which is delimited by some character, let's say a comma. I should be able to create a TStringList and set it's delimiter to a comma then set the DelimitedText to the text I want to parse and it should be automaticlly parsed.
The problem is when I look at the output it also includes spaces as delimiters and chops up my results. How can I avoid this, or is there a better way to do this.
© Stack Overflow or respective owner