VB.Net force Next in a For Loop


Is there a way to force a the for loop to skip the iteration it is on and go to the next one? I know there is one in Java, but I can't think if what it may be in VB.


For i = 0 to count

'some code that may cause an error
Catch ex as exception

'the call to jump to the next iteration of the for loop
End Try


Who is Participating?
pillbug22Connect With a Mentor Commented:
According to your code, it's going to go to the next item even if there is an error.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.