Skip to content

Continue

立即开始外层循环的下一次迭代。

语法:Continue [ Do | For | While ]

Do
Do 循环中使用。
For
For 循环中使用。
While
While 循环中使用

INFO

Continue 是twinBASIC扩展。经典VBA中任何循环结构都没有跳过迭代的形式——最接近的等价方式是使用 GoTo 前向跳转到放置在循环终止符之前的标签。

示例

本示例使用 Continue For 跳过字符串中某些字符的处理。

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及其LOGO版权为作者"韦恩"所有