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
High(a)-Low(a)+1
rather than sizeof()?
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to