7,785
社区成员




'按照这个顺序关闭程序:
'1、清空对象
set object1=nothing
set object2=nothing
...................
set objectn=nothing
'2、卸载窗体
unload form1
unload form2
............
unload formn
'3、终止程序,任务交给VB处理
End '这一行千万别忘了!
dim a,b,c,d
set a.obj=b
set b.obj=c
set c.obj=d
set d.obj=a
set a=nothing
'but 'a' still in memory