I know I can loop though objects in a collection.
Is it possible to loop through a "specific" property of the objects in that collection?
For example. I have 500 instances of an object (obj) and I also have a custom collection (coll) and I would loop as follows through the objects in the collection.
For each obj in coll
'Do something
Next
Each obj has a property called OType:
300x instances have OType = "A"
100x instances have OType = "B"
75x instances have OType = "C"
25x instances haveOType = "D"
I want to be able to loop through those 4 distinct property values in the collection. This would loop 4 times instead of 500 times. The following does not work.
For each obj.OType in coll
'Do something
Next
Thanks
Is it possible to loop through a "specific" property of the objects in that collection?
For example. I have 500 instances of an object (obj) and I also have a custom collection (coll) and I would loop as follows through the objects in the collection.
For each obj in coll
'Do something
Next
Each obj has a property called OType:
300x instances have OType = "A"
100x instances have OType = "B"
75x instances have OType = "C"
25x instances haveOType = "D"
I want to be able to loop through those 4 distinct property values in the collection. This would loop 4 times instead of 500 times. The following does not work.
For each obj.OType in coll
'Do something
Next
Thanks