[fpc-pascal] Const Array Length (was Dynamic Array Length)
RainerStratmann at t-online.de
Sun Jan 3 13:12:07 CET 2010
Am Sunday 03 January 2010 13:03:37 schrieb Frank Peelo:
> Rainer Stratmann wrote:
> > Am Saturday 02 January 2010 16:34:57 schrieb JoshyFun:
> >> a: array[1..] or string = ('aaa', 'bbb', 'ccc');
> > That would be perfect.
> > Then you can automatically calculate the amount:
> > amax = sizeof( a ) div sizeof( a[ 1 ] );
> If this syntax was in Pascal, would you use
> rather than sizeof()?
I think high and low has an other meaning.
I C this works. There I have the idea from.
Best regards, Rainer
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
More information about the fpc-pascal