|
-
Apr 30th, 2005, 12:31 AM
#1
Thread Starter
Lively Member
i keep getting this error msg -runtime error 2147483638- [RESOLVED]
I found out that it -runtime error 2147483638- means "The data necessary to complete this operation is not yet available." so I though that the xdoc.readystate != 4, yes I'm trying to:
Set nodes = xdoc.documentElement.selectNodes("//TITLES")
For intNode = 0 To nodes.length - 1
MsgBox "title= " & nodes(intNode).nodeValue
Next
But I either get the above runtime error or "variable or object not set"... or what ever it is.
And oh even when the readystate IS = 4 I still get the runtime error.
Private Sub Form_Load()
Dim rf As New Msxml2.XMLHTTP40
Set xd = New Msxml2.DOMDocument40
Dim i As Integer
Dim intNode As Integer
Dim nodes As IXMLDOMNodeList
xd.async = False
rf.open "GET", "http://mysite.asp" _
, True
rf.send
Set xd = rf.responseXML
MsgBox "the state= " & xd.ReadyState
If xd.parseError.errorCode = 0 Then
Else
MsgBox xd.parseError.reason & vbCrLf & _
"Line: " & xd.parseError.Line & vbCrLf & _
"XML: " & xd.parseError.srcText
End If
Set nodes = xd.documentElement.selectNodes("//TITLES")
For intNode = 0 To nodes.length - 1
MsgBox "title= " & nodes(intNode).nodeValue
Next
xd.save "c:/temp.xml"
Set nodes = Nothing
Me.Visible = False
End Sub
Last edited by Aries Mars; Apr 30th, 2005 at 01:46 PM.
-
Apr 30th, 2005, 09:46 AM
#2
Re: i keep getting this error msg -runtime error 2147483638-
-
Apr 30th, 2005, 01:53 PM
#3
Thread Starter
Lively Member
Re: i keep getting this error msg -runtime error 2147483638- [RESOLVED]
Yes!! Thanx the link did help in a funny way. Someone suggested that the:
xhttp.open "get" "HTTP://Mysite.asp", [var asyn]....
[var sync] argument should = true. This is false. The argument needs to be false so that the method is synchronous. But nonetheless it works!!
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
|