Using For loops
Note: when using for-loops or do-loops you can use continue; in C#. The continue "statement passes control to the next iteration of the enclosing iteration statement in which it appears" (MSDN). Correct me if I'm wrong but I don't think this exists in VB.NET
Correcting you :] May only apply to 2.0 of the Framework (?) but just use:
Code:
For num as integer = 1 to 10
If num = 5 Then
Continue For 'Skips to the "Next" statement
End if
Console.WriteLine(num.ToString())
Next