hilite button

Larry Watts lgwatts at adelphia.net
Wed Nov 12 07:04:46 EST 2008


thanks Mark,
I knew that.  I guess I was just tired and couldn't see my obvious error. 
It's why new programmers shouldn't venture too far into the woods alone!
Larry

----- Original Message ----- 
From: "Mark Smith" <lists at futilism.com>
To: "How to use Revolution" <use-revolution at lists.runrev.com>
Sent: Tuesday, November 11, 2008 7:03 PM
Subject: Re: hilite button


> Larry, you've got caught by the 'and' vs. '&' trap...
>
> 'and' is a logical operator - so "return and 0" evaluates to false,  '&' 
> concatenates.
>
> This has also caused me severe hair-loss at times.
>
> Best,
>
> Mark
>
> On 12 Nov 2008, at 02:43, Larry Watts wrote:
>
>> Sorry, this is the kind of thing that drives me CRAZY!
>>
>> I have a checkbox, check1.  I put the following script into a button:
>>
>> if the hilite of button check1 is true then
>> put return & 1 after field myPrefs
>> else
>> put return and 0 after field myPrefs
>> end if
>>
>> If the button is checked, it does put return and 1 on the next  line. 
>> But if the button is not checked, it puts no return and puts  "false" on 
>> the same line.
>> I don't get it!  I tried a million (slight exaggeration) ways to do  it 
>> otherwise but cannot get it to work.  Any clue?
>>
>> Thanks!
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 




More information about the use-livecode mailing list