On 6/5/06, Alexandre Leclerc <[EMAIL PROTECTED]> wrote:
I checked arround to see if there was a function to parse a valid CSV
string and return the result in a array?

procedure DecodeCSV(s: string; var a: array of string);

So a string like:
123, my name, "name, my", "just ""more"" text"

would return in an array:
[ '123' , 'my name' , 'name, my', 'just "more" text' ]

i don't know if 'ExtractWord' and 'ExtractWordPos' with a 'Set of Char
= [,]' would help ?

it doesn't do the parsing for you strictly, but makes writing a little
parsing routine _much_ simpler ?

Tony

--
X-SA user ? 0.5.1 is out !
XData 0.1 for X-SA is out !
http://x-plane.dsrts.com
http://games.groups.yahoo.com/group/x-plane-foo/

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to