VBS中语句错误的预期结束

时间:2018-01-15 21:01:28

标签: vbscript webrequest

Dim url, host, port, custId
host = "http://127.0.0.1"
port = ":80"
custId = "???"

If custId <> "" Then
    url = host & port & "/SalesPadRemoteLibrary/Web/OpenCustomer?Customer_Num=" _
          & custId
    Dim myRequest As WebRequest = WebRequest.Create(url)
    Dim myResponse As WebResponse = myRequest.GetResponse()
    myResponse.Close()
End If

我遇到了这个软件的问题。我得到了一个预期的结束声明&#34; 8行第15行的错误。我不知道为什么。我有一段类似的代码可以使用,但功能并不完全是我想要的。我是否错误地初始化了请求/响应?

0 个答案:

没有答案
相关问题