Here is the code in VBScript. Is there any equivalence for GetRef() in FoxPro so I can pass it to onreadystatechange event? I can't do this by implementing interface of MSXML2.XMLHttp.
Any idea is appreciated.(Maybe the Timer approach...)
set oHTTP = WScript.CreateObject("Microsoft.XMLHTTP")
oHTTP.onreadystatechange = GetRef("RespReceived")
oHTTP.open"GET", "http://www.microsoft.com", True
oHTTP.send
Sub RespReceived
if oHTTP.readystate = 4then
bRespReceived = True
endifend sub