Frequently asked question

Why does every item in an array have the same value as the last item?

Last Published: April 25, 2020


.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.

Article ID:000008144

  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic