J
James
Quick question about closing recordsets and connection objects. We're in
the process of rewriting a TON of bad code. None of it is even remotely
tabbed properly, it's impossible to read half the time and it never closes
connection objects or recordsets. Unfortunately, I've been assigned the
task of closing them. I assume I'm just doing:
recordset.close
Set recordset = Nothing
conn.close
Set conn = Nothing
....whenever it's no longer needed. I guess that my question is, how do I
need to handle redirects within a page. Should I close/set to nothing
before a redirect, or by the page losing "focus", will these objects be
released anyway?
Are there any general rules of thumb that might save me some time going
through the 1,000,000+ lines of code?
Thanks!
the process of rewriting a TON of bad code. None of it is even remotely
tabbed properly, it's impossible to read half the time and it never closes
connection objects or recordsets. Unfortunately, I've been assigned the
task of closing them. I assume I'm just doing:
recordset.close
Set recordset = Nothing
conn.close
Set conn = Nothing
....whenever it's no longer needed. I guess that my question is, how do I
need to handle redirects within a page. Should I close/set to nothing
before a redirect, or by the page losing "focus", will these objects be
released anyway?
Are there any general rules of thumb that might save me some time going
through the 1,000,000+ lines of code?
Thanks!