Continue
立即开始外层循环的下一次迭代。
语法:Continue [ Do | For | 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