- Jun 16, 2004
- 1,034
- 0
- 0
Disclaimer: object oriented programming scares me.
I've got a number of objects in a collection. 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?
THANKS!
I've got a number of objects in a collection. 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?
THANKS!