OrthoDocSoft
Programmer
Folks,
Some of the forms in my program "load" and "activate" and then I am done with them, and want them "gone."
Since strongm has embarrassed me away from using "end" (rightfully, lol), I'm trying to do things more correctly.
So when I'm done with a form, I use:
and for awhile, I was placing this as the last lines of the Form_Load procedure, but felt weird about it, because how can you ask a form to become "nothing" before you have finished "loading" it. See?
Should I put this code in Form_Activate, which is, I think, the last thing to happen before the form appears?
Thanks,
Ortho
"you cain't fix 'stupid'...
Some of the forms in my program "load" and "activate" and then I am done with them, and want them "gone."
Since strongm has embarrassed me away from using "end" (rightfully, lol), I'm trying to do things more correctly.
So when I'm done with a form, I use:
Code:
Unload frmMyForm
set frmMyForm = nothing
and for awhile, I was placing this as the last lines of the Form_Load procedure, but felt weird about it, because how can you ask a form to become "nothing" before you have finished "loading" it. See?
Should I put this code in Form_Activate, which is, I think, the last thing to happen before the form appears?
Thanks,
Ortho
![[lookaround] [lookaround] [lookaround]](/data/assets/smilies/lookaround.gif)