I love using For Each to do my looping, mainly because it is so much more readable
Is there anyway to find out what iteration we are at?
I find myself having to do
Just so I can have an index (iteration) of where we are at.
For Each must be maintaining some type of internal index to be able to move on to the next entry
Can reference the internal index from within the For Each statement?
Thanks
BobVal
Is there anyway to find out what iteration we are at?
I find myself having to do
B4X:
for i = 0 to Z.size-1
x = Z.get(i)
next
Just so I can have an index (iteration) of where we are at.
For Each must be maintaining some type of internal index to be able to move on to the next entry
Can reference the internal index from within the For Each statement?
Thanks
BobVal