The Continue Statement

The Continue statement starts a new iteration of the nearest enclosing loop.

continue-statement:

Continue

The target of the Continue statement is the end point of the embedded statement block of the nearest enclosing loop. If this statement is not enclosed by a loop, a compile error occurs.

The Continue statement cannot exit the Finally block. When this statement occurs within the Finally block, the target of the statement must be within the same Finally block. Otherwise, a compile error occurs.

Example

Private Sub TestContinue();
Var
    b: boolean;
Begin
    Repeat
        //Code executed in loop
        If MessageBox.Show("Result is incorrect. Repeat calculation?",
            "Confirmation", MessageBoxButtons.OKCancel) = DialogResult.OK Then
            Continue;
        Else
            Break
        End If;
        //Code executed after confirmation
    Until b;
End Sub;

See also:

Jump Statements