To use early binding (so that intellisense will work), use an additional object:
Code:
Dim colArrayList As ArrayList
Dim tmpObj As Pages
colArrayList = New ArrayList
colArrayList.Add(New Pages(intPageNum, intStartingKey, intEndingKey))
' Here is where you gain access:
tmpObj = colArrayList(<select the item youâre after here>) ' Now the item in the Array
' list and tmpObj reference
' the same object.
But this is not necessary to gain access to the individual objectsâs members.
VB will access them just fine (though with late binding) with the following:
Code:
Dim colArrayList As ArrayList
Code:
colArrayList = New ArrayList
colArrayList.Add(New Pages(intPageNum, intStartingKey, intEndingKey))
colArrayList(<select the item youâre after here>).intStartKey = 25