From: tutiplain via DotNetMonster.com on
Thanks for the tips, guys. I will keep them in mind for the future.

Armin Zingler wrote:
>tutiplain via DotNetMonster.com schrieb:
>> Dim Ar(7) makes an array of 0 to 8.
>
>In addition to Mike:
>In previous VB verions you were able to specify the lower and upper
>bound of the array, e.g.
>
> Dim bla(-17 To 95)
>
>so you were able to access
>
>bla(-17)
>...
>bla(95)
>
>The lower bound was optional, so
>
> Dim bla(95)
>
>was equal to
>
> Dim bla(0 To 95)
>
>(unless the default lower bound had been changed to 1 by writing
>"Option Base 1").
>
>Therefore, the number inside the braces is still the upper bound - I
>probably would have made 1001 mistakes if this would have been changed -
>and with 0-based arrays the length is naturally upper bound + 1.
>
>Armin

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/Forums.aspx/dotnet-vb-net/200909/1