FreePascal and dynamic arrays

  • Follow


Hi,

after a long time without any Pascal, I was trying a little FreePascal
today. I'm wondering if there's any way to retrieve the size (the upper
bound) of a dynamic array. I might be wrong, but I think there was
something called GetLength in Delphi. Is there anything similar in
FreePascal? 

Thanks,
Timo
0
Reply Timo 2/22/2004 11:52:00 PM

On 2004-02-22, Timo Gransch <timo.gransch@gmx.de> wrote:
> Hi,
>
> after a long time without any Pascal, I was trying a little FreePascal
> today. I'm wondering if there's any way to retrieve the size (the upper
> bound) of a dynamic array. I might be wrong, but I think there was
> something called GetLength in Delphi

You are wrong, there is setlength, but not getlength.

> Is there anything similar in FreePascal?

Same as delphi.  low().. high() or length()

0
Reply Marco 2/23/2004 12:33:14 AM


1 Replies
265 Views

(page loaded in 0.039 seconds)

Similiar Articles:





7/29/2012 11:56:06 AM


Reply: