<br><br><div class="gmail_quote">On 21 November 2011 10:06,  <span dir="ltr"><<a href="mailto:michael.vancanneyt@wisa.be">michael.vancanneyt@wisa.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
<br>
On Mon, 21 Nov 2011, Graeme Geldenhuys wrote:<br>
<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 2011-11-21 11:17, michael.vancanneyt@w..... wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Where in the Delphi documentation does it mention that?  I couldn't find<br>
any such reference in the Delphi 7 docs, and I thought FPC implements<br>
behaviour based on documented behaviour, not implementation behaviour?<br>
</blockquote>
<br>
Sure. See the 'CommaText' help.<br>
</blockquote>
<br>
Sure, that is the help for CommaText, not the help for Delimiter or<br>
DelimitedText. In the latter documentation it makes no mention of SDF<br>
(System Data Format) format usage - which apparently has the Comma or<br>
Space character requirement.<br>
<br>
DelimitedText docs say:  "individual strings are separated by the<br>
character specified by the Delimiter property."<br>
<br>
I guess this boils down to the interpretation of the Delphi<br>
documentation then.<br>
</blockquote>
<br></div>
In my opinion, the Delphi documentation is quite explicit:<br>
<br>
------------------------------<u></u>------------------------------<u></u>-----------<br>
When writing DelimitedText, individual strings must be separated using<br>
QuoteChar at both ends, using Delimiter as a separator, or using both these<br>
methods.<br>
<br>
Note:   CommaText is the same as the DelimitedText property when Delimiter<br>
is ',' and QuoteChar is '"'.<br>
------------------------------<u></u>------------------------------<u></u>-----------<br>
<br>
The first paragraph indicate that in fact you should always use " around your<br>
values.<br>
<br>
And the last sentence should prompt anyone to go and read the CommaText<br>
docs.<br>
<br></blockquote><div><br>This is one of the things concocted to make life difficult for programmers<img goomoji="330" style="margin: 0pt 0.2ex; vertical-align: middle;" src="cid:330@goomoji.gmail">. In my view if the docs are not explicit about space being treated specially, then it shouldn't be treated specially, but such are the conventions in the programming world.<br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
But we're not here to discuss the merits/disadvantages of the Delphi docs :-)<br>
<br>
Michael.<div><div></div><div class="h5"><br>
______________________________<u></u>_________________<br>
fpc-pascal maillist  -  <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.<u></u>org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/<u></u>mailman/listinfo/fpc-pascal</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Frank Church<br><br>=======================<br><a href="http://devblog.brahmancreations.com">http://devblog.brahmancreations.com</a><br>