[fpc-pascal]Questions about the new features in version 1.2.

Jonas jonas at zeus.rug.ac.be
Mon Apr 9 12:07:12 CEST 2001


On Monday, April 9, 2001, at 10:27 AM, Sebastian Günther wrote:

> > 2. How do you get the upper and lower bounds of dynamic arrays when you 
> > don't already know those values for certain?  When I use the High and Low 
> > functions for these things, I always get -1 and 0, respectively. 
>  
> Just use Hi and Lo? 

No, high() and low() should work (hi and lo are for getting the upper/lower part of bytes/words/longints/int64s etc).

To Keith Bowes : could you show an example program that fails? And which version of the compiler are you using? (use the command line option -i)


Jonas




More information about the fpc-pascal mailing list