# Re: Set FormName = Nothing ，非[Basic}语法之程式码？

Posted by C.T.Wang on August 02, 1999 at 18:12:32:

In Reply to: Set FormName = Nothing ，非[Basic}语法之程式码？ posted by 新手 on July 29, 1999 at 09:30:22:

1. form是一个很特别的Class. 一般而言, form的名称也是一个class name, 所以我们可以do this:
dim f as form1
f.show
'上述指令很像 form1.show. 但是比较"好", 因为你可以: set f = nothing.
2. form 在unload时不会完全unload.(有文为证:
Note When a form is unloaded, only
the displayed component is unloaded.
The code associated with the form module
remains in memory.
(摘自VB6 help/index search: unload statement)
用一的作法才能完全将"form1"从memory移除.
3. 解释的很糟? 因我也是半梦半醒之间..sorry.

Follow Ups: