asp

位置:IT落伍者 >> asp >> 浏览文章

asp exit用法与exit实例教程


发布日期:2022年09月16日
 
asp exit用法与exit实例教程

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
%>

上一篇:用ASP建立站内搜索

下一篇:asp入门:asp如何保存数据