Checkbox script

Andre.Bisseret Andre.Bisseret at inria.fr
Sat Jun 19 09:51:01 CDT 2010


Bonjour Charles,
As suggested by Wayne if you declare tConcat as global in each script  
then it works as expected

Best

André

Le 19 juin 10 à 15:18, charles61 a écrit :

>
> I have a series of ten checkboxes. I am trying to script them so  
> that when
> checkboxes are checked, names are put into variables and then put  
> into a
> field "disability". I tried the following script using just two  
> checkboxes,
> checka, checkb, to test my script:
>
> Checka Script:
> on mouseUp
global tConcat,
-----------------
>   if the hilite of me =true
>   then
>      put "Egg Allergy" & space after tConcat
>      put tConcat into field "disability"
>   else
>      filter field "disability" without "*Egg Allergy*"
>   end if
> end mouseUp
>
> Checkb Script:
> on mouseUp
global tConcat,
------------------
>   if the hilite of me =true
>   then
>      put "Fish Allergy" & space after tConcat
>      put tConcat into field "disability"
>   else
>      filter field "disability" without "*Fish Allergy*"
>   end if
> end mouseUp
>
> Unfortunately, this script does not put "Egg Allergy" followed by  
> "Fish
> Allergy" into field "disability" when both checkboxes are checked.  
> Instead,
> only "Egg Allergy" or "Fish Allergy" are inserted into the field.  
> According
> to the Rev documentation, this should work. Does anyone have a  
> suggestion
> how I can get I both of these variables into the field?
>
>
> -- 
> View this message in context: http://runtime-revolution.278305.n4.nabble.com/Checkbox-script-tp2261136p2261136.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> _______________________________________________
> 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