ShaneBrennan
Programmer
Hi Everyone, not sure if this is the right thread/forum to put this... but I'm having issues trying to convert the following code from VB6 to VB2008. All it dowes is posts to a URL the locationID and the site returns an XML of the data stored there. But I haven;t a clue how to do it. All sites I can see give .NET equivalents. Thanks in advance for any help anyone can give.
CurrentTimeFormatted = Format(Date, "yyyy-mmm-dd-hh-nn")
CurrentTimeFormatted = URLencshort(CurrentTimeFormatted)
Dim html As IXMLHTTPRequest
Set html = CreateObject("Microsoft.XMLHTTP")
URLString = GetSetting("HTTPServerPath") & "GetAsbestosbyLocation.asp?LocationID=" & TheLocationID & "&t=" & CurrentTimeFormatted
With html
.Open "GET", URLString, False
.send
TheXMLContent = .responseText
End With
Shane Brennan
CurrentTimeFormatted = Format(Date, "yyyy-mmm-dd-hh-nn")
CurrentTimeFormatted = URLencshort(CurrentTimeFormatted)
Dim html As IXMLHTTPRequest
Set html = CreateObject("Microsoft.XMLHTTP")
URLString = GetSetting("HTTPServerPath") & "GetAsbestosbyLocation.asp?LocationID=" & TheLocationID & "&t=" & CurrentTimeFormatted
With html
.Open "GET", URLString, False
.send
TheXMLContent = .responseText
End With
Shane Brennan