Use a pointer to an array of string

Type
 Tars=array[0..0] of string; //if FPC does support open arrays remove [0..0]
and use SetLength etc. instead of allocating memory using memory manager
 Pars=^Tars;

Procedure test(x:Pars);
Begin
 ...
End;


----------------
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


> -----Original Message-----
> From: Alexandre Leclerc [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 06, 2006 6:51 PM
> To: [email protected]
> Subject: Re: [lazarus] Function to parse valid CSV string?
>
> 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
> 



  _____  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0623-1, 06/06/2006
Tested on: 7/6/2006 9:26:51 ??
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

Reply via email to