ASP CloseObj()关闭释放对象

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
本博客所有文章如无特别注明均为原创。作者:sysdee复制或转载请以超链接形式注明转自 成功志
原文地址《ASP CloseObj()关闭释放对象
分享到:更多

相关推荐

发表评论

路人甲 表情
看不清楚?点图切换 Ctrl+Enter快速提交

网友评论(0)