Visual Basic Scripting Edition | 语言参考 |
创建了一个For...Next 循环结构,但未正常结束循环。一个For...Next 循环结构必须以一个Next语句结束。下面演示了一个For...Next 循环结构的正确结构。
For counter = start To end [Step step]
[statements]
[Exit For]
[statements]
Next
要纠正该错误
For...Next 语句 | Do...Loop 语句 | Exit 语句 | For Each...Next 语句 | While...Wend 语句