Am 19.04.2013 09:38, schrieb Xiangrong Fang:
2013/4/19 Michael Van Canneyt <mich...@freepascal.org
<mailto:mich...@freepascal.org>>
1. I don't know whether I have to MANUALLY free memory for these
strings to
prevent leak?
Yes, if you work like this, you must do all that. You must free
all pointers in the list, and the strings they point to.
But why not use TStringList ? It does all this for you.
Because I want to then concat the strings into a big string using
CRLF, but the TStringList.Text method concat them using LF only. I
think that might be platform dependant, which is not what I want.
It seems that TextLineBreakStyle is what you want:
http://www.freepascal.org/docs-html/rtl/classes/tstrings.textlinebreakstyle.html
Regards,
Sven
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal