|
-
Jul 10th, 2000, 01:49 PM
#1
Thread Starter
Lively Member
Hi i am opening up serveral recordsets on my page and I use these to populate drop down boxes. Now I want to close all the recordsets: I put them in the following location near the end of the page. I also close them out using this function:
function closeRS(rs)
RS.Close
Set RS = Nothing
end function
</table>
</body>
<%
'close it out
closeRS(rst1)
closeRS(rst2)
closeRS(rst3)
closeRS(rst4)
closeRS(rst5)
closeRS(dbConn)%>
</html>
Does anyone see anything wrong with this method?
-
Jul 10th, 2000, 01:56 PM
#2
Addicted Member
looks alright to me scott
u getting errors?
dvst8
Secret to long life:
Keep breathing as long as possible.
-
Jul 10th, 2000, 01:59 PM
#3
Thread Starter
Lively Member
Im not getting any errors, I just want to make sure that I am writing clean code...
-
Jul 10th, 2000, 02:01 PM
#4
Addicted Member
cleaner than mine
Secret to long life:
Keep breathing as long as possible.
-
Jul 10th, 2000, 02:10 PM
#5
Frenzied Member
Well, it looks OK but question why do you need so many recordsets open at once?
If I'm doing several queries I close the record set and reuse the variable.
I then set the recordset and connection to nothing at the end of the page.
-
Jul 11th, 2000, 09:10 AM
#6
Addicted Member
mark = cleanest of clean 
the way mark suggested is definitely the best way to go.
Secret to long life:
Keep breathing as long as possible.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|