Hi,
I have a For Each loop, something like this:
Dim members(10) as someclass
For Each memb As someclass In members
memb = new someclass(some parameters)
Next
Now, i would expect this loop to actualy change each member in members array. But no, actualy this code assigns memb value of new someclass(some parameters) but doesn't change the actual member in members array. My thougts are that it is supposed to be that way. So question is: How to change multiple instances of a class in array via some loop? Any help is appreciated.
Sincerely,
Filip.