The answer is:
The "Item" function that you create in the Collection class to refer to the appropriate instance can reference the item by Index (Base 1
) or by Key (specified when the instance is added to the collection).
I couldn't get the parameter of the built-in "Item" function to reference the Key and NOT the index - even though I was passing the value as an Object and not an Integer. (There are two syntax versions of the Item Function - passing Index as Integer to reference the INDEX, or passing Index as Object to reference the KEY)
Anyway, the answer is:
VB Code:
Public Function Item(ByVal Key As [color=red]String[/color]) As AddressLibrary
Return colLibraries.Item(Key)
End Function
and NOT...
VB Code:
Public Function Item(ByVal Key As [color=red]Object[/color]) As AddressLibrary
Return colLibraries.Item(Key)
End Function
Someone somewhere may appreciate this one day