> > 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;
>
> I still need a type declaration; I don't thing that procedure test(p:
> ^array of string); will work :)

Yes, that's what I mean, a bit unfortunate, but in (Object) Pascal you have
to define the pointer type first, then use it in proc/func delcarations

----------------
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): 0625-0, 19/06/2006
Tested on: 19/6/2006 1:30:14 ??
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