Skip to content

Continue

Immediately begins the next iteration of the enclosing loop.

Syntax: Continue [ Do | For | While ]

Do
Used within a Do loop.
For
Used within a For loop.
While
Used within a While loop

INFO

Continue is a twinBASIC extension. Classic VBA has no skip-iteration form for any loop construct --- the closest equivalent is a forward GoTo to a label placed just before the loop's terminator.

Example

This example uses Continue For to skip processing of certain characters of the string.

vb
Dim i%, ch$, text$
For i = 1 To 10
    ch = Mid$(text, i, 1)
    If ch = " " Then Continue For
    ' Process a non-space character here
Next i

twinBASIC and LOGO copyright of "WaynePhillipsEA" author