17128.html

来自「VB技巧问答10000例,是一个教程」· HTML 代码 · 共 27 行

HTML
27
字号
<html>  <head>    <title>纪兄,你猜对我的意思,但有个问题.</title>  </head>  <body bgcolor="#FFFFFF" vlink="#808080">    <center>      <h1>纪兄,你猜对我的意思,但有个问题.</h1>    </center><hr size=7 width=75%><hr size=7 width=75%><p>Posted by <a href="mailto:kkcheung@yahoo.com">kkcheung</a> on August 12, 1999 at 15:05:09:<p>In Reply to: <a href="17123.html">我想他要的, 不是这样吧!!</a> posted by 纪文和 on August 12, 1999 at 13:37:56:<p>: : : 在fox-next执行中,可以按表单上的一个 command 来停止,<br>: : : 再去做其他事吗?<p>: : 可以试试在command 中加上<br>: : Exit For<p>: 我想他的意思是说,程式正在执行某一个回圈动作时, 他想用另外一个按钮来停止这个回圈动作, 所以不能在另一个按钮中使用 Exit For.<p>: kkcheung :<br>: 如果我猜错了的话, 下面可看可不看. <p>: 您可以使用一个 Form Level 的变数或 Global 的变数, 当作旗标, 在回圈中判断这个旗标的值, 以决定是否跳出回圈.<br>: 而在 commandButton 中改变这个变数值即可.<br>: 不过, 最好在回圈中加上 DoEvents,<p>: <a href="http://www.ruentex.com.tw/vbguide" target="_blank">VB入门网</a><p> 如果程式在回圈中,即程式在运作,那怎样可以按下其他command来改变变量呢?<br> 而你的意思程式是 ....?谢谢你!<br> for i=1 to 10000<br>  if temp=1 then<br>     exit for<br>  endif<br>  Doevents<br> next<br><br><hr size=7 width=75%><p><a name="followups">Follow Ups:</a><br><ul><!--insert: 17128--><!--top: 17147--><li><a href="17147.html">Re: 纪兄,你猜对我的意思,但有个问题.</a> <b>纪文和</b> <i>21:19:16 8/12/99</i>(<!--responses: 17147-->0)<ul><!--insert: 17147--></ul><!--end: 17147--></ul><!--end: 17128--><br><hr size=7 width=75%><p></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?