Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27201

VS 2012 [RESOLVED] Problem with an array of objects

$
0
0
I have an array that contains strings, numbers, dates and booleans. It has form-wide scope and is declared thus:
Code:

Private f_StudentFields(40) As Object
When it comes to populating this array I fill all of the elements starting at 0 and ending at 39. This executes fine but when I inspect its contents at a breakpoint I discover that there are 41 elements in the array, starting at 0 and ending at 40.
Can someone please explain what's going on here?

Viewing all articles
Browse latest Browse all 27201

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>