请帮我:VB处理XML文件,xml.load(aFilepath)的时候出错

qxin2002 2004-11-19 10:15:05
我在VB里引用了Miscrosoft XML,v3.0
做xml.Load(aFilepath)的时候就跳转到Set xml = Nothing,蓝色光标覆盖了Nothing,然后就出Compile Error:Object ibrary feature not supported
这时候看VB的引用里Miscrosoft XML,v3.0就不见了,请问各位这是什么原因呢?部分代码如下:

Private mvarxml As New DOMDocument
Public Property Set xml(ByVal vData As DOMDocument)

'used when assigning an Object to the property, on the left side of a Set statement.
'Syntax: Set x.xml = Form1
Set mvarxml = vData

End Property


Public Property Get xml() As DOMDocument

'used when retrieving value of a property, on the right side of an assignment.
'Syntax: Debug.Print X.xml
Set xml = mvarxml

End Property

Private Sub Class_Initialize()

Set xml = Nothing

End Sub
...全文
151 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
aohan 2004-11-28
  • 打赏
  • 举报
回复
up顶一下

2,462

社区成员

发帖
与我相关
我的任务
社区描述
VBA(Visual Basic for Applications)是Visual Basic的一种宏语言,是在其桌面应用程序中执行通用的自动化(OLE)任务的编程语言。
社区管理员
  • VBA
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧