7,763
社区成员
发帖
与我相关
我的任务
分享
Sub TestGet()
Dim objXMLhttp
On Error GoTo TestGet_Error
Set objXMLhttp = CreateObject("Microsoft.XMLHTTP")
objXMLhttp.Open "GET", "http://www.xxx.com/xx.php?Code=", False
objXMLhttp.Send
If objXMLhttp.readystate <> 4 Then
Exit Sub
End If
If objXMLhttp.Status <> 200 Then
Exit Sub
End If
On Error GoTo 0
Exit Sub
TestGet_Error:
MsgBox "错误 " & Err.Number & " (" & Err.Description & ") in procedure TestGet of Form Form1"
End Sub