2006/6/5, Darius Blaszijk <[EMAIL PROTECTED]>:
Another "easy" way of "decomposing" a CSV string is to use TStrings.
OTOH -> Assign the string to the DelimitedText property and assign the
Delimiter to "," in this case. Each line in TStrings now holds one item from
the CSV string..
Indeed, but you can't handle the quote logic: a, "b, c", d => 'a', 'b,
c', 'd'. This method would give 'a', '"b', 'c"', 'd'.
--
Alexandre Leclerc
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives