Hi
Yes, Jonas is correct. The other thing to note is that such code should be
compiled with range checking/index checking switched off, as otherwise the
compiler will (correctly) complain when you violate the apparent array
bounds. Usually you can do this in the source with a suitable compiler
switch, {$R-} perhaps (untested)
Walter
----- Original Message -----
From: "Jonas Raoni Soares Silva" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, April 19, 2005 2:35 AM
Subject: [list] Re: [delphi-en] Array problem
On 4/18/05, Dave Murray <[EMAIL PROTECTED]> wrote:
> What does a type declaration like this mean?
> Adapter : array [0..0] of IP_ADAPTER_INDEX_MAP;
>
> Why is the index range 0..0?
>
> I'm trying to iterate through this array in a while loop and sometimes
> get a range error when I know there are still entries left.
I think it's an old way of creating dynamic arrays ;]
If i remember well, a friend of mine used this thing in his code on delphi 3
...
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/delphi-en/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/