Why doesn't this work?

Bill Vlahos bvlahos at mac.com
Fri May 19 19:03:04 EDT 2017


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 <use-livecode at lists.runrev.com> wrote:
> 
> 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 <use-livecode at lists.runrev.com> wrote:
>> 
>> 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 <use-livecode at lists.runrev.com> wrote:
>>> 
>>> 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
>>>    revGoURL vQuery
>>> end if
>>> if the hilite of button "Enable2" then
>>>    put field "f2a" & vNum & field "f2b" into vQuery
>>>    revGoURL vQuery
>>> end if
>>> end searchNow
>>> _______________________________________________
>>> use-livecode mailing list
>>> 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
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> 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
> 
> 
> _______________________________________________
> use-livecode mailing list
> 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





More information about the Use-livecode mailing list