check box and closefield

Michael Young m.young at mac.com
Mon Sep 15 22:42:01 EDT 2003


On Monday, September 15, 2003, at 10:03 AM, 
use-revolution-request at lists.runrev.com wrote:

> Subject: Re: check box and closefield
> From: =?iso-8859-1?Q?Ludovic_Th=E9bault?= 
> <ludovic.thebault at laposte.net>
> Organization: la mienne
> Reply-To: use-revolution at lists.runrev.com
>
> On Sun, 14 Sep 2003 22:16:16 -0600, Michael Young wrote:
>> What I cannot figure out how to do is create x buttons with x fields
>> and send the field information to the output text field in the button
>> order, i.e.
>
> try :
> on mouseUp
>   if hilite of me is true
>      then put fld ("Field "&last word of the short name of me) into fld
> "Output"
>      else put "" into fld "Output"
> end mouseUp
>
> Field 1 script:
> on closefield
>   if hilite of btn ("Button "&last word of the short name of me) is
> false
>   then hilite btn ("Button "&last word of the short name of me)
>   put me into fld "Output"
> end closefield

Thank you for your input. I cut and pasted it but it did not work. I do 
not understand why your suggestion does not work. Is there some trick 
to get this suggestion to work, then I could write the two scripts once 
and put them at the card level rather than write them many times at the 
individual object level?

But I guess I was also clear in what I am trying to do.

What I need is the following:
button 1 true with field 1 information: foo
button 2 true with field 2 information: bar
button 3 false with field 3 information: soft
button 4 true with field 4 information: taco
button 5 false with field 5 information: ham
button 6 false with field 6 information: burger

output field information:
foo
bar
taco
burger

I have done more looking into RR (since I am still very new to it). 
Should I be using a Switch control structure with the mouseup and 
closefield commands handled there?

Michael




More information about the use-livecode mailing list