教程集 www.jiaochengji.com
教程集 >  脚本编程  >  Asp  >  正文 asp exit用法与exit实例教程

asp exit用法与exit实例教程

发布时间:2016-09-30   编辑:jiaochengji.com
教程集为您提供asp exit用法与exit实例教程等资源,欢迎您收藏本站,我们将为您提供最新的asp exit用法与exit实例教程资源

exit关键字改变通过使从循环结构立即退出的控制流。您可以使用在不同情况下退出

的关键字,例如要避免死循环。要退出就... Next循环柜台前达到其有限的价值,你

应该使用Exit For语句。要退出你...循环使用Exit Do语句。

Select ActionSelect AllTry It<%
response.write("<p><strong>Example of using the Exit For

statement:</strong><p>")

For i = 0 to 10 
   If i=3 Then Exit For 
   response.write("The number is " & i & "<br />")
Next

response.write("<p><strong>Example of using the Exit Do

statement:</strong><p>")

i = 5
Do Until i = 10
  i = i - 1
  response.write("The number is " & i & "<br />")
  If i < 10 Then Exit Do
Loop
%>

您可能感兴趣的文章:
asp exit用法与exit实例教程
asp 返回一个路径的目录名与父路径
asp入门教程:ASP Request 简单介绍
asp 电子邮箱email验证实例程序
php中die()与exit()的真正区别
php停止脚本执行的方法
asp脚本查询超时的处理函数
cdn或反向代理后获取用户真实IP的函数代码Asp版
php fopen 创建生成html并且创建目录实例教程
golang语言sync.WaitGroup简单教程

[关闭]
~ ~