Parsing a string using a delimiter to a TStringList, seems to also parse on spaces (Delphi)

▼魔方 西西 提交于 2019-12-05 07:06:53

There's a StrictDelimiter property on the TStringList. Set it to True and it will only parse on the delimiter, not the spaces.

That's standard, documented behavior of the TStrings.DelimitedText property. You want to set the StrictDelimiter property to true to disable that behavior.

You can have a look on the function "ExtractStrings" , if you are using d7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!