S
sl1210MKII
Hi,
currently I'm using Office 2002 for consuming an XMLHTTP Request.
Basiclly everything works fine but I need an asynchronous request.
Therefore I would like to set a callback to one of myfunctions. My code
looks Something like this:
Private Function loadFromUrl(URL As String)
Dim http As Object
Set http = CreateObject("MSXML2.XMLHTTP")
http.Open "GET", URL, False
http.send
End Function
This works fine. Now I try to make it asynchron, so I add a function
Function statechange()
' .....
End Function
And add an line
http.OnReadyStateChange = statechange
to my LoadFromURL function. During Execution I get an runtime error 13:
"Type mismatch" on that line. I tryed multiple alternatives to defien
that Callback but none worked.
Thanks for help,
johannes
currently I'm using Office 2002 for consuming an XMLHTTP Request.
Basiclly everything works fine but I need an asynchronous request.
Therefore I would like to set a callback to one of myfunctions. My code
looks Something like this:
Private Function loadFromUrl(URL As String)
Dim http As Object
Set http = CreateObject("MSXML2.XMLHTTP")
http.Open "GET", URL, False
http.send
End Function
This works fine. Now I try to make it asynchron, so I add a function
Function statechange()
' .....
End Function
And add an line
http.OnReadyStateChange = statechange
to my LoadFromURL function. During Execution I get an runtime error 13:
"Type mismatch" on that line. I tryed multiple alternatives to defien
that Callback but none worked.
Thanks for help,
johannes