I need to surround the newaddress variable with " " in the following url.
weatherurl = "http://maps.googleapis.com/maps/api/geocode/xml?address=" & newaddress & "&sensor=False"
I used Chr(34) as a replacement in
weatherurl = "http://maps.googleapis.com/maps/api/geocode/xml?address="& Chr(34)& newaddress & Chr(34)&"&sensor=False"
Which generated the correct string but then I don't think the weatherurl variable could hold it to put it into the following
request.InitializeGet(weatherurl)
The java error said it had an illegal character in the query at index 56 which is right where the " is.
I tried request.InitializeGet("http://maps.googleapis.com/maps/api/geocode/xml?address="& Chr(34)& newaddress & Chr(34)&"&sensor=False")
but it just barfed again.
Any ideas?
weatherurl = "http://maps.googleapis.com/maps/api/geocode/xml?address=" & newaddress & "&sensor=False"
I used Chr(34) as a replacement in
weatherurl = "http://maps.googleapis.com/maps/api/geocode/xml?address="& Chr(34)& newaddress & Chr(34)&"&sensor=False"
Which generated the correct string but then I don't think the weatherurl variable could hold it to put it into the following
request.InitializeGet(weatherurl)
The java error said it had an illegal character in the query at index 56 which is right where the " is.
I tried request.InitializeGet("http://maps.googleapis.com/maps/api/geocode/xml?address="& Chr(34)& newaddress & Chr(34)&"&sensor=False")
but it just barfed again.
Any ideas?
Last edited: