Hello. I've got a number of objects in a collection, and I'd like to access their properties. However, I can't access their properties unless I loop through the collection in the following way:
for each inst as obj in collection
inst.property = 5
next
I'd like to be able to access objects based on their index number, such as in the following:
for each inst as obj in collection
if inst.property = 5 then
inst(12).property = "success"
end if
next
Is this possible?
If it helps, the collection was defined as type Microsoft.VisualBasic.Collection()
Thank you!


Reply With Quote


Bookmarks