11783.html

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

HTML
23
字号
<html>
  <head>
    <title>Re: 如何将已执行的程序(procedure)中止</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>Re: 如何将已执行的程序(procedure)中止</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by <a href="mailto:mindong@263.net">柏先生</a> on April 08, 1999 at 15:43:04:<p>
In Reply to: <a href="11781.html">如何将已执行的程序(procedure)中止</a> posted by 阿甘 on April 08, 1999 at 14:55:35:<p>
: example :<br>: sub form_load()<br>:     showGrid<br>: end sub<br>dim bKey as boolean<p>: sub showGrid()<br>:     vsql="select * from data"<br>:     set rs=db.openrecordset(vsql)<br>:     while rs.eof<br>:           irow=irow+1<br>:           msflexgrid.textmatrix(irow,0)=rs(0)<br>:              .......<br>******  增加几句代&#30721;<br>        if bKey then<br>           bKey=False<br>           exit sub<br>        end if<br>        Doevents<br>******   增加&#32467;束<br>       <br>:           rs.movenext<br>:     wend<br>:     set rs=nothing<br>: end sub <br>: 突然发现data太多想停止执行,不知要如何做才好?<br>: Give me help?,thanks!<p>sub GetKey_KeyUp(byval Keycode as Integer)<br>    if keycode=vbKeyEscape then<br>       bKey=True   <br>    end if<br>End Sub<p>&#36825;&#26679;一按ESC&#38190;,程序&#32456;止。<br>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 11783-->
</ul><!--end: 11783-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

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