-
Give me Result Pls.
Hey every one,
I have Faced a problem, that i declared a dim variable in form module. when i show the form at first time the variable get set. And when i unload it,then the Vari. Retains as Last set when i show it by using mdi at next time. Why? TO overcome it i used
set form1= nothing.
But i want to know how this occur............
-
because unloading a form just takes it off the screen and does not remove its variables from memory. what you have done is correct (set it to nothing to really get rid of it & free up memory)
-
no..... unloading a static form will clear its variables.
but if you created it dynamically with "SET" ... you will have to set it to nothing after you unload it.