Click to See Complete Forum and Search --> : Unload and End
As far as I understand, the End command should never be used to end a program. It apparently leaves crap in memory. We are instead supposed to use Unload. If this is the case does the End command have another use or does MS refuse to remove a bad command?
Wen Lie
Dec 14th, 1999, 11:28 AM
Dear Nookta,
As long as I know about VB, the End command is just used to end your application.
No other use I think.
Just read your MSDN Help File, I'm sure it will help u a lot.
Regards,
Wille
Crazy D
Dec 14th, 1999, 02:45 PM
If you use the End command, the form_queryunload and form_unload events are not called (maybe some others too...) and since you usually clean up the mess you made in the form_unload, it's not so smart to use the end statement... I've seen some ppl using the end because the program didn't stop when they did Unload Me (or Unload FormName) but that indicates something is not going well in your app... I think End is available for backwards compatibility.. try not to use it...
Juillet
Dec 14th, 1999, 05:53 PM
Yes, end usually means the programmer has a conflict and has not closed out properly.
Unload Form1
Set Form1 = Nothing
Tonio169
Dec 15th, 1999, 10:03 AM
i think end should only be used when there is a need for immediate termination of the program. otherwise use unload to perform some clean-up tasks in the unload and terminate events.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.