专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅

首页 »Asp教程 » asp无组件上传:Asp组件检测函数 »正文

asp无组件上传:Asp组件检测函数

来源: 发布时间:星期四, 2009年2月12日 浏览:213次 评论:0


    个Asp组件检测需要朋友可以直接拿去用中国自学编程网www.zxbc.cn

\'
\'作  用:检查组件是否已经安装
\'参  数:strClassString ----组件名
\'返回值:True  ----已经安装
\'        False ----没有安装
\'
Function IsObjInstalled(ByVal strClassString)
 Dim xTestObj,ClsString
 On Error Resume Next
 IsObjInstalled = False
 ClsString = strClassString
 Err = 0
 Set xTestObj = Server.CreateObject(ClsString)
 If Err = 0 Then IsObjInstalled = True
 If Err = -2147352567 Then IsObjInstalled = True
 Set xTestObj = Nothing
 Err = 0
 Exit Function
End Function 


0

相关文章

读者评论

发表评论

  • 昵称:
  • 内容: