ASP CloseObj()关闭释放对象
成功志
ASP CloseObj()关闭释放对象
2011-12-3 ok12
Function CloseObj()


If IsObject(rs) then 

if rs.state=1 then rs.close

 Set rs = Nothing 'if Not rs Is Nothing Then 不用判断了,直SET,另typeName(rs) = "Nothing" 

end if


If IsObject(conn) then 

if conn.state=1 then conn.close

Set conn = Nothing

end if

End Function
发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容