[fpc-pascal] Copy and Dynamic Arrays

Florian Klaempfl florian at freepascal.org
Thu Feb 1 11:52:48 CET 2007


Graeme Geldenhuys schrieb:
> Hi,
> 
> How do I copy Dynamic Arrays?  I can't do what I used to in Delphi,
> using the Copy() function, as FPC keeps telling me I have the wrong
> number of parameters.
> 
> Doesn't FPC supporting copying dynamic arrays?
> 
> I have the following code which works in Delphi
> 
> ---------------------
> procedure TSomeClass.FooBar(AArray: array of string);
> var
> lArray: array of string;
> begin
>  lArray := Copy(AArray);

Submit a bug report if this works in delphi.



More information about the fpc-pascal mailing list