On Tue, 6 Jun 2006, David Nicolás Abdala wrote:


Hi all,

here is the CSV decoding function. I have a problem with the array of
string as the compiler is saying the type is not good when trying the
SetLength(a). I must create a type for this.

Now I submit this procedure (because a function cant' return an array
of string, but could probably return the type?) and I want inputs:
- a better solution for 'array of string'
- if no solution, is a function better?

Then after I received the input I'll send a patch for sysutils (when
the forum is up again).

Thank you very much (for making this code and fpc/lazarus better). :)

Why don't you use a TStrings instead of an array of string?
I don't know about CSV use, but using a TStrings will release you from the
memory allocation for the strings..

TStrings cannot go in strutils, it would create a dependency on classes.

Michael.

Reply via email to