M
Miro
Is there an "Integer Counter" or a "Loop" number somehow part of the For
each statement?
I find myself doing this a lot ( where I want to omit for example the first
instance )
dim OwnLineWordCounter as integer = 0
For Each OwnLineWord As String In EnterWords
OwnLineWordCounter += 1
If OwnLineWordCounter > 1 Then
'do work here
End If
Next
Sometimes there are certain predefined elements I want to skip over.
Instead of always declaring my own counter for the 'for each', and instead
of using a For Next loop,
does the for each have a built in counter somewhere?
Thanks,
Miro
each statement?
I find myself doing this a lot ( where I want to omit for example the first
instance )
dim OwnLineWordCounter as integer = 0
For Each OwnLineWord As String In EnterWords
OwnLineWordCounter += 1
If OwnLineWordCounter > 1 Then
'do work here
End If
Next
Sometimes there are certain predefined elements I want to skip over.
Instead of always declaring my own counter for the 'for each', and instead
of using a For Next loop,
does the for each have a built in counter somewhere?
Thanks,
Miro