Is This Content Helpful?
We're glad to know this article was helpful.
Why does every item in an array have the same value as the last item?
.NET languages are weakly declared, meaning all variables do not have to be declared explicitly. This can cause all items in an array to have the same last value.
To solve this problem, declare with Dim a separate object for every item in an array.