[fpc-pascal] Dynamic Array Length

Rainer Stratmann RainerStratmann at t-online.de
Thu Dec 31 12:29:07 CET 2009


const
 data : array[ 1..{leave open} ] of byte = ( 11 , 12 , 13 );

 datalen = sizeof( data ) div data[ 1 ];

Would this possible in a way?
In C it is possible.

Now I have to know the length of the array data and say it before.



More information about the fpc-pascal mailing list