16524.html

来自「VB技巧问答10000例 VB技巧问答10000例」· HTML 代码 · 共 23 行

HTML
23
字号
<html>
  <head>
    <title>Re: Set FormName = Nothing  ,非[Basic}语法之程式码?</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>Re: Set FormName = Nothing  ,非[Basic}语法之程式码?</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by <a href="mailto:cthelios@ms21.hinet.net">C.T.Wang</a> on August 02, 1999 at 18:12:32:<p>
In Reply to: <a href="16344.html">Set FormName = Nothing  ,非[Basic}语法之程式码?</a> posted by 新手 on July 29, 1999 at 09:30:22:<p>
 <br> 1. form是一个很特别的Class. 一般而言, form的名称也是一个class name, 所以我们可以do this:<br>   dim f as form1<br>   f.show<br>   '上述指令很像 form1.show. 但是比较"好", 因为你可以: set f = nothing. <br>    <br> 2. form 在unload时不会完全unload.(有文为证:<br>     Note   When a form is unloaded, only <br>     the displayed component is unloaded. <br>     The code associated with the form module<br>     remains in memory.<br>     (摘自VB6 help/index search: unload statement)<br>    用一的作法才能完全将"form1"从memory移除.<br> <br> 3. 解释的很糟? 因我也是半梦半醒之间..sorry.<p>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 16524-->
</ul><!--end: 16524-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

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