H
Hal Vaughan
I don't think this is possible, but I figure it won't hurt to ask. I just
might learn something new.
I have an object I've created with a boolean isActive. I can set it my
setting the field directly (myObject.isActive = true) or with a setter
(myObject.setActive(true)). I will be working with an array, like this:
myObject[]
Is there any way to do the same operation on all members of that array
without using a loop to iterate through each item in the array? In this
case, I'd like to set all the members to active at once. It would be like
doing:
myObject[].setActive(true)
I don't think this is possible, but is there a way to do it?
Thanks!
Hal
might learn something new.
I have an object I've created with a boolean isActive. I can set it my
setting the field directly (myObject.isActive = true) or with a setter
(myObject.setActive(true)). I will be working with an array, like this:
myObject[]
Is there any way to do the same operation on all members of that array
without using a loop to iterate through each item in the array? In this
case, I'd like to set all the members to active at once. It would be like
doing:
myObject[].setActive(true)
I don't think this is possible, but is there a way to do it?
Thanks!
Hal