hilite button

Larry Watts lgwatts at adelphia.net
Tue Nov 11 21:43:36 EST 2008


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!


More information about the use-livecode mailing list