Why doesn't this work?

Rick Harrison harrison at all-auctions.com
Sun May 31 13:17:02 EDT 2015


Hi Bill,

A  wild guess for something to try:

Maybe because you are using both && and &.  The engine gets confused?  

Try just using: 

& vAC & “ HTTP/1.1”

Good luck

Rick



> On May 31, 2015, at 12:29 PM, Bill Vlahos <bvlahos at mac.com> wrote:
> 
> I’m using LiveCode 7.0.4 on Mac OS 10.10.3. I want to figure out the time zone for an area code. I found a web service for this.
> 
> I want to be able to pass the area code to the http query as a variable. It works if I hard code it but not if I concatenate it.
> 
> If I put the following code in a button it works.
>   put URL "http://www.webservicex.net/uszip.asmx/GetInfoByAreaCode?USAreaCode=805 <http://www.webservicex.net/uszip.asmx/GetInfoByAreaCode?USAreaCode=805>" && "HTTP/1.1"
> 
> 
> If I put the following code in the button it fails.
>   put "805" into vAC
>   put URL "http://www.webservicex.net/uszip.asmx/GetInfoByAreaCode?USAreaCode= <http://www.webservicex.net/uszip.asmx/GetInfoByAreaCode?USAreaCode=>" & vAC && "HTTP/1.1"
> 
> 
> Why?
> 
> Thanks,
> Bill Vlahos
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode <http://lists.runrev.com/mailman/listinfo/use-livecode>



More information about the use-livecode mailing list