[fpc-pascal]Getting the size of an array

Peter Vreman peter at freepascal.org
Thu Oct 2 13:00:20 CEST 2003

> In Delphi (the later versions I suppose), it is
> possible to get the size of an array, and not just
> the size of a String, using Length()
> Is this not available yet in FreePascal or is there
> another way of doing it?
> You can use SizeOf, but then you'd have to get the
> SizeOf the type of the array first (is this possible?)
> and divide the SizeOf the array type by it.

It is already supported in the development (1.1) compiler

More information about the fpc-pascal mailing list