[fpc-pascal]Arrays

Florian Klaempfl Florian.Klaempfl at gmx.de
Tue Jan 7 17:09:22 CET 2003


Michael Van Canneyt wrote:
>>   tmpX:    Array of String;
>>
>>Can arrays like that of tmpX be used in FPC ?
> 
> 
> Yes. version 1.1 fully supports dynamic arrays.
> 
> In version 1.1 you would need something like

Version 1.0.x you mean of course :)

> 
> Type
>   PString = ^String;
>   tmpX : PString;
> 
> GetMem(tmpX,Count*SizeOf(Pstring));
> Tmpx[0]:='';
> Tmpx[Count-1]:='Something';





More information about the fpc-pascal mailing list