in reply to Variable that holds current index of the Array

In almost all cases you don't need the index in a simple foreach loop, because the loop-variable is an alias, i.e. you can change the actual array element directly.

If you really wanna know the index you have to use a c-stile for-loop.

Cheers Rolf

  • Comment on Re: Variable that holds current index of the Array