I am trying to retrieve the correct value from an ArrayList of objects (1.1 Framework) :
I have the following defined :
Public AlList As New ArrayList
Public Class ItemInfo
Public ItemNo As Int16
Public ItemType As String
Public Reports As Array
Public PDFs As Array
End Class
The form_load event code contains :
Dim AnItemObj As New ItemInfo
Then a loop that includes :
AnItemObj.ItemNo = AFile.RecordId
AnItemObj.ItemType = temp
AlList.Add(AnItemObj)
So I should now have an ArrayList of these objects, however if I try to retrieve the data :
MsgBox(AlList(5).ItemNo)
I always get the ItemNo of the last value in the list.
I'm sure this is something very simple that I am missing.