My goal is not to interprete a csv file, but interpret a record in a
csv file. All this logic could be implemented in a class that would
then call the function I'm completing.
But usually, you just can't detect what is the field separator. This
is why, for example, OpenOffice is always prompting a box to set the
parameters properly.
But now I've a pretty sad problem, passing an array of string as var
will fail. I must create a type TArrayOfString. But I'll send my code
then maybe some coders here will find a solution I don't know of.
2006/6/6, George Birbilis <[EMAIL PROTECTED]>:
Sometimes the first line contains the NAMES of the columns instead of data,
but this isn't necessery. I suppose you can find out what the separator is
(comma or tab) if you assume names don't contain separators
----------------
George Birbilis ([EMAIL PROTECTED])
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
* QuickTime, QTVR, ActiveX, VCL, .NET
http://www.kagi.com/birbilis
* Robotics
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup
_____
avast! Antivirus <http://www.avast.com> : Outbound message clean.
Virus Database (VPS): 0623-0, 05/06/2006
Tested on: 6/6/2006 5:13:07 ??
avast! - copyright (c) 1988-2006 ALWIL Software.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
--
Alexandre Leclerc
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives