Re: Why doesn't this work?

2017-05-19 Thread Bill Vlahos via use-livecode
Oh never mind. I was mistaken that it worked in the first “if statement”. I needed to make vNum a global variable and now it works. Bill > On May 19, 2017, at 12:00 PM, Bill Vlahos via use-livecode > wrote: > > JB, > > It is the vNum variable itself that is

Re: Why doesn't this work?

2017-05-19 Thread Bill Vlahos via use-livecode
JB, It is the vNum variable itself that is empty in the if statement. If I put vNum the result is blank. Thanks, Bill > On May 19, 2017, at 11:40 AM, JB via use-livecode > wrote: > > It could be one of the fields has a space > at the end and the other does

Re: Why doesn't this work?

2017-05-19 Thread JB via use-livecode
It could be one of the fields has a space at the end and the other does not. JB > On May 19, 2017, at 11:20 AM, Bill Vlahos via use-livecode > wrote: > > I’m concatenating one field & a passed phone number & another field. > > The variable vNum works in the

Why doesn't this work?

2017-05-19 Thread Bill Vlahos via use-livecode
I’m concatenating one field & a passed phone number & another field. The variable vNum works in the first if statement but is blank in the second. Why? Thank you, Bill Vlahos on searchNow vNum if the hilite of button "Enable1" then put field "f1a" & vNum & field "f1b" into vQuery

Re: Why doesn't this work?

2015-06-01 Thread Bob Sneidar
Wow didn’t know you could do that. Bob S On May 31, 2015, at 12:09 , Mike Bonner bonnm...@gmail.commailto:bonnm...@gmail.com wrote: Rather than trying to build up a proper URL with and etc, set the string up as a constant or a property contaiing: constant baseUrl=

Why doesn't this work?

2015-05-31 Thread Bill Vlahos
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

Re: Why doesn't this work?

2015-05-31 Thread Mark Schonewille
Bill, It doesn't work because LiveCode first parses url [the url] and then concatenates the subsequent strings. Try using parentheses: put 805 into vAC put URL (http://www.webservicex.net/uszip.asmx/GetInfoByAreaCode?USAreaCode=; vAC) HTTP/1.1 -- Best regards, Mark Schonewille

Re: Why doesn't this work?

2015-05-31 Thread Klaus major-k
Hi Bill, Am 31.05.2015 um 18:29 schrieb Bill Vlahos bvla...@mac.com: 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

Re: Why doesn't this work?

2015-05-31 Thread Bill Vlahos
Unfortunately neither of these suggestions work. LiveCode doesn’t like the parenthesis. I also tried using quote syntax and that didn’t work either. Bill On May 31, 2015, at 9:34 AM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Bill, It doesn't work because LiveCode first

Re: Why doesn't this work?

2015-05-31 Thread Rick Harrison
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 bvla...@mac.com wrote: I’m using LiveCode 7.0.4 on Mac OS 10.10.3. I want to

Re: Why doesn't this work?

2015-05-31 Thread Bill Vlahos
My apologies. Mark and Klaus both came up with the correct solution. When I copied/pasted from the email it must have picked up a something extra that made it not work. I tried it again and it works fine. Thank you, Bill Vlahos On May 31, 2015, at 9:59 AM, Mark Schonewille

Re: Why doesn't this work?

2015-05-31 Thread Mark Schonewille
Hi Bill, Doesn't like is far from informative. Could you describe the unwanted behaviour and include the exact text of any error messages you get? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter:

Re: Why doesn't this work?

2015-05-31 Thread Mark Schonewille
Bill, If I run this script in a button on mouseUp put 805 into vAC put URL (http://www.webservicex.net/uszip.asmx/GetInfoByAreaCode?USAreaCode=; vAC) HTTP/1.1 end mouseUp I get... ?xml version=1.0 encoding=utf-8? NewDataSet Table CITYWoody/CITY STATECA/STATE

Re: Why doesn't this work?

2015-05-31 Thread Mike Bonner
Not to throw more information at an already answered question, but I find merge() to be tremendously helpful for this type of thing. Rather than trying to build up a proper URL with and etc, set the string up as a constant or a property contaiing: constant baseUrl=

Re: Why doesn't menupick work

2014-08-27 Thread Bob Sneidar
I see bugs sometimes, but usually it is after drinking too much skunk beer. Bob S On Aug 23, 2014, at 14:47 , revolut...@duncansoftware.on-rev.commailto:revolut...@duncansoftware.on-rev.com wrote: The crlf was created from my code. The bug is not with Livecode. The bug is staring at my

Re: Why doesn't menupick work

2014-08-23 Thread revolut...@duncansoftware.on-rev.com
The crlf was created from my code. The bug is not with Livecode. The bug is staring at my monitor. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Why doesn't menupick work

2014-08-23 Thread Mark Wieder
The crlf was created from my code. The bug is not with Livecode. The bug is staring at my monitor. LOL -- -Mark Wieder ahsoftw...@gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent

Re: Why doesn't menupick work

2014-08-22 Thread Mark Schonewille
Probably, calling a control The short name is also a bad idea ;-) -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468

Re: Why doesn't menupick work

2014-08-22 Thread revolut...@duncansoftware.on-rev.com
Thanks everyone for your ideas. They got me looking again at the combobox list of cardnames. This button was generated populated through a script. At the end of each line is a crlf which on the Mac leaves an unprintable char at the end of the line. So the spaces and tildes were not the problem

Re: Why doesn't menupick work

2014-08-22 Thread Richard Gaskin
revolution wrote: Thanks everyone for your ideas. They got me looking again at the combobox list of cardnames. This button was generated populated through a script. At the end of each line is a crlf which on the Mac leaves an unprintable char at the end of the line. So the spaces and

Re: Why doesn't menupick work

2014-08-21 Thread Brahmanathswami
: Why doesn't this code work? on menuPick pItemName go card pItemName end menuPick where the comboBox has a list of card names. Set a breakpoint at the go line and when it pauses, see what's in pItemName and whether there's a card with that name. You can also temporarily add answer the result

Re: Why doesn't menupick work

2014-08-21 Thread revolut...@duncansoftware.on-rev.com
On 8/20/2014, 8:08 PM, revolut...@duncansoftware.on-rev.com wrote: Why doesn't this code work? on menuPick pItemName go card pItemName end menuPick where the comboBox has a list of card names. Set a breakpoint at the go line and when it pauses, see what's in pItemName and whether

Re: Why doesn't menupick work

2014-08-21 Thread Devin Asay
On Aug 21, 2014, at 5:02 AM, revolut...@duncansoftware.on-rev.com wrote: On 8/20/2014, 8:08 PM, revolut...@duncansoftware.on-rev.com wrote: Why doesn't this code work? on menuPick pItemName go card pItemName end menuPick where the comboBox has a list of card names. Set

Re: Why doesn't menupick work

2014-08-21 Thread Mark Schonewille
, revolut...@duncansoftware.on-rev.com wrote: Why doesn't this code work? on menuPick pItemName go card pItemName end menuPick where the comboBox has a list of card names. Set a breakpoint at the go line and when it pauses, see what's in pItemName and whether there's a card with that name

Why doesn't menupick work

2014-08-20 Thread revolut...@duncansoftware.on-rev.com
Why doesn't this code work? on menuPick pItemName go card pItemName end menuPick where the comboBox has a list of card names. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage

Re: Why doesn't menupick work

2014-08-20 Thread Paul Hibbert
Works fine for me in LC 5.5.5, LC 6.6.2 LC 7.0(dp10) on Mac OS X 10.8.5 and in LC 6.6.2 on Windows 7. Do you see any kind of error? Paul On 2014-08-20, at 6:08 PM, revolut...@duncansoftware.on-rev.com wrote: Why doesn't this code work? on menuPick pItemName go card pItemName end

Re: Why doesn't menupick work

2014-08-20 Thread J. Landman Gay
On 8/20/2014, 8:08 PM, revolut...@duncansoftware.on-rev.com wrote: Why doesn't this code work? on menuPick pItemName go card pItemName end menuPick where the comboBox has a list of card names. Set a breakpoint at the go line and when it pauses, see what's in pItemName and whether