大家好, 是否有任何''技巧''有人知道控制一个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)
更多推荐
对于下一次迭代
发布评论