Is there a hidden iteration counter in this for loop?
Posted
by Anders
on Stack Overflow
See other posts from Stack Overflow
or by Anders
Published on 2009-01-05T14:02:46Z
Indexed on
2010/05/31
1:42 UTC
Read the original article
Hit count: 258
If you have a for loop such as:
For Each s As String In stringList
..do stuff..
Next
is there some sort of (hidden) iterator or do I have to add an external integer to keep count:
Dim i As Integer
For Each s As String In stringList
..do stuff..
i += 1
Next
© Stack Overflow or respective owner