Embarasing newbie question

  • Thread starter Thread starter Henry Padilla
  • Start date Start date
H

Henry Padilla

I know I've used this before but I can't find it in .NET

How do you Continue a For...Next loop?

There used to be a key word, "Continue", and it would skip all the code and
start the next loop but I can't find it to save my life.

I feel like such a goober asking this but I'm really stuck.

Thanks,
Tom P.
 
Henry Padilla said:
How do you Continue a For...Next loop?

There used to be a key word, "Continue", and it would skip all the code
and start the next loop

Currently, you can use a label and 'GoTo':

\\\
For i = 1 To 10
...
If...Then
GoTo NextIteration
End If
...
NextIteration:
Next i
///

In VB 2005 you can use 'Continue'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top