dim oxmlhttp,page
on error resume next
set oxmlhttp=createobject("msxml2.xmlhttp")
with oxmlhttp
.open "get",surl,false
.send
page=.responsetext
end with
if err.number<>0 then
'Resource unavailable for varied reasons. Empty string assigned
page=""
end if
set oxmlhttp=nothing
on error resume next
[green]'page stored the desired result (equivalent to $page)[/green]
[/tt]
dim oxmlhttp,page
on error resume next
set oxmlhttp=createobject("msxml2.xmlhttp")
with oxmlhttp
.open "get",surl,false
.send
page=.responsetext
end with
if err.number<>0 then
'Resource unavailable for varied reasons. Empty string assigned
page=""
end if
set oxmlhttp=nothing
on error resume next
'page stored the desired result (equivalent to $page)
No, I would not for a request that general. It is not for those completely new to vbs. There are better ways to learn vbs than learn it that way. Maybe some other members would volunteer.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.