Re: Program still running after UNLOAD

Tech-Archive recommends: Fix windows errors by optimizing your registry



"BCS" <nospam@xxxxxxxxxxx> wrote in message news:46e953c4$0$18998$4c368faf@xxxxxxxxxxxxxxxxx
Thanks Bob. Oddly enough, when I returned to my project this morning I didn't have this problem. I guess in working with all my forms yesterday, I probably had one in the background that I didn't see. Any suggestions I could use to close any open forms? Something like FOR EACH form in project...unload. Would I put this in a Terminate routine?

IMO it's much better to keep track of the forms and ensure they are unloaded when no longer needed. Using a generalized cleanup I consider to be a band-aid and poor practice. That said,

for each f in forms
unload f
next


.