对于下一次迭代

编程入门 行业动态 更新时间:2024-10-27 08:32:40
本文介绍了对于下一次迭代的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好, 是否有任何''技巧''有人知道控制一个For Next传递给ASP VBScript中的下一个 迭代? ..类似于C的''continue''关键字和 C ++? 提前致谢.. -BB

Hi all, Is there any ''trick'' anyone knows to control a For Next to pass to the next iteration in ASP VBScript? ..Similar to the ''continue'' keyword of C and C++? Thanks in advance.. -BB

推荐答案

很酷。这让我指出了正确的方向... 有点让我感到愚蠢..但是它有效..:-P 谢谢 -BB " Evertjan。" <前************** @ interxnl>在消息中写道 news:Xn ******************** @ 194.109.133.29 ... Ah cool. That points me in the right direction... Kinda makes me feel stupid .. but it works .. :-P thanks -BB "Evertjan." <ex**************@interxnl> wrote in message news:Xn********************@194.109.133.29... Brian Burgess于2003年7月29日在 microsoft.public.inetserver.asp.general写道: Brian Burgess wrote on 29 jul 2003 in microsoft.public.inetserver.asp.general: 是否有任何''技巧''任何人都知道控制一个For Next传递到ASP VBScript的下一次迭代? ..类似于''继续''关键字的C和C ++? Is there any ''trick'' anyone knows to control a For Next to pass to the next iteration in ASP VBScript? ..Similar to the ''continue'' keyword of C and C++?

对于i = 1到100 继续=假' '做事情如果我= 17然后继续=真如果如果没有继续那么''做的事情结束如果下一页 可以做得更简单。 - Evertjan。荷兰。(请将我的电子邮件地址中的x'变为点数)

For i=1 to 100 continue=false '' do things if i=17 then continue=true if not continue then '' do things end if Next can be done simpler. -- Evertjan. The Netherlands. (Please change the x''es to dots in my emailaddress)

嘿我在VBScript 组中从Walter Zackery / Michael Harris那里得到了一个很酷的方式...... For Count = 1到5 Do 如果Count = 3则退出Do MsgBox Count 退出Do:循环 下一页 酷呀? Do循环包装.. -BB " Brian Burgess" < BB ******** @ hotmail>在消息中写道 news:uj ************** @ tk2msftngp13.phx.gbl ... Hey I got a cool way from Walter Zackery/Michael Harris in the VBScript group... For Count = 1 to 5 Do If Count = 3 Then Exit Do MsgBox Count Exit Do:Loop Next Cool eh? a Do Loop wrapper .. -BB "Brian Burgess" <bb********@hotmail> wrote in message news:uj**************@tk2msftngp13.phx.gbl... 很酷。这让我指出了正确的方向...... 有点让我感到愚蠢..但它有效...... :- 感谢 -BB Evertjan。 <前************** @ interxnl>在消息中写道新闻:Xn ******************** @ 194.109.133.29 ... Ah cool. That points me in the right direction... Kinda makes me feel stupid .. but it works .. :-P thanks -BB "Evertjan." <ex**************@interxnl> wrote in message news:Xn********************@194.109.133.29... Brian Burgess在29日写道jul 2003 in microsoft.public.inetserver.asp.general: Brian Burgess wrote on 29 jul 2003 in microsoft.public.inetserver.asp.general: 是否有任何''技巧''有人知道控制一个For Next传递给 ASP VBScript中的下一次迭代? ..类似于''继续''关键字的C和C ++? Is there any ''trick'' anyone knows to control a For Next to pass to the next iteration in ASP VBScript? ..Similar to the ''continue'' keyword of C and C++?

对于i = 1到100 继续=假' '做事情如果我= 17然后继续=真如果如果没有继续那么''做的事情结束如果下一页 可以做得更简单。 - Evertjan。荷兰。(请将我的电子邮件地址中的x'变为点数)

For i=1 to 100 continue=false '' do things if i=17 then continue=true if not continue then '' do things end if Next can be done simpler. -- Evertjan. The Netherlands. (Please change the x''es to dots in my emailaddress)

我确定我没有看到这一点。以下内容完全相同, 更容易被他人阅读和理解,并且是合乎逻辑的。 数量= 1到5 如果计算<> 3然后 ''等等等等等等 - 不能在ASP / VBScript中使用Msgbox 结束如果 下一步 " Brian Burgess" < BB ******** @ hotmail>在消息中写道 新闻:%2 **************** @ tk2msftngp13.phx.gbl ... I''m sure I don''t see the point. The following does exactly the same thing, is easier to read and understand by others and is logical. For Count = 1 to 5 If count <> 3 then ''blah blah blah -- can''t use a Msgbox in ASP/VBScript end if Next "Brian Burgess" <bb********@hotmail> wrote in message news:%2****************@tk2msftngp13.phx.gbl... 嘿我在VBScript 小组中得到Walter Zackery / Michael Harris的一个很酷的方式... 对于Count = 1到5 如果Count = 3则退出做好了MsgBox计数退出做:循环 好吧? Do Loop包装器.. -BB " Brian Burgess" < BB ******** @ hotmail>在消息中写道新闻:uj ************** @ tk2msftngp13.phx.gbl ... Hey I got a cool way from Walter Zackery/Michael Harris in the VBScript group... For Count = 1 to 5 Do If Count = 3 Then Exit Do MsgBox Count Exit Do:Loop Next Cool eh? a Do Loop wrapper .. -BB "Brian Burgess" <bb********@hotmail> wrote in message news:uj**************@tk2msftngp13.phx.gbl... 很酷。这让我指出了正确的方向...... 有点让我感到愚蠢..但它有效...... :- 感谢 -BB Evertjan。 <前************** @ interxnl>在消息中写道新闻:Xn ******************** @ 194.109.133.29 ... Ah cool. That points me in the right direction... Kinda makes me feel stupid .. but it works .. :-P thanks -BB "Evertjan." <ex**************@interxnl> wrote in message news:Xn********************@194.109.133.29... Brian Burgess在29日写道2003年7月在 microsoft.public.inetserver.asp.general: >是否有任何''技巧''任何人都知道控制一个For Next传递到> ASP VBScript中的下一次迭代? ..类似于''继续''关键字> C和C ++的含义?> 对于i = 1到100 继续=假''做事情如果i = 17然后继续= true 如果没有继续那么''做的事情结束如果下一步 可以做得更简单。 - Evertjan。荷兰。(请将我的电子邮件中的x'变为点数) Brian Burgess wrote on 29 jul 2003 in microsoft.public.inetserver.asp.general: > Is there any ''trick'' anyone knows to control a For Next to pass to the > next iteration in ASP VBScript? ..Similar to the ''continue'' keyword > of C and C++? > For i=1 to 100 continue=false '' do things if i=17 then continue=true if not continue then '' do things end if Next can be done simpler. -- Evertjan. The Netherlands. (Please change the x''es to dots in my emailaddress)

更多推荐

对于下一次迭代

本文发布于:2023-10-12 21:15:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1485917.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:迭代

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!