exit关键字改变通过使从循环结构立即退出的控制流您可以使用在不同情况下退出
的关键字例如要避免死循环要退出就 Next循环柜台前达到其有限的价值你
应该使用Exit For语句要退出你循环使用Exit Do语句
Select ActionSelect AllTry It<%
responsewrite("<p><strong>Example of using the Exit For
statement:</strong><p>")
For i = to
If i= Then Exit For
responsewrite("The number is " & i & "<br />")
Next
responsewrite("<p><strong>Example of using the Exit Do
statement:</strong><p>")
i =
Do Until i =
i = i
responsewrite("The number is " & i & "<br />")
If i < Then Exit Do
Loop
%>