-1

In VB6, I want to make a msg box pop up if the word ERROR: appears on the webpage. If anyone could link me to a website or just help we out, that would be great.

4

1 回答 1

2

请示例代码如下:

URL = "www.yoursite.com"
Set http = CreateObject("Microsoft.XmlHttp")
http.open "GET", URL, FALSE
http.send ""
IF InStr(http.responseText, "ERROR:") > 0 THEN
    MsgBox "Some error occurred"
END IF
于 2012-12-26T19:19:28.777 回答