Sorry Sammy, close but no cigar.
Continue doesn't drop out of the loop, it skips to the next iteration.
In VB6, at least, I don't think there is an equivalent of
continue. I seem to recall hearing recently about something in VB.Net which would do it, but don't remember what it was.
In VB6, I tend to use an inner loop to achieve the same end. For example...
- For Index = 1 to 10
-
Do
-
If some condition Then
-
Exit Do ' Equivalent of applying Continue to the For loop.
-
End If
-
... other processing that you wanted to skip ...
-
-
Loop While False ' In other words, don't loop.
-
Next
It's a little ugly, but it works.