Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loop through all open objects

Status
Not open for further replies.

guitardave78

Programmer
Sep 5, 2001
1,294
GB
Is it possible to loop through all open objects and close them ?

The background is I have inherited a system where record sets never get closed. I don not yet have time to hard code this in. For now I would like to loop through any open object and kill it!!

}...the bane of my life!
 
So you want to know if an object is open and, if so, then close it automatically? I am not aware of a way to have the application check for any open objects and close them automatically (sounds like the destructor or garbage collector in .NET). But if I'm wrong, please clarify.

------------------------------------------------------------------------------------------------------------------------
"Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."
- Winston Churchill
 
The MS KnowledgeBase indicates that there is currently no garbage collection for VBScript. However, if you use JScript, there may be some hope... Sorry... :-(

------------------------------------------------------------------------------------------------------------------------
"Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."
- Winston Churchill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top