Checking status of checkboxes
charles61
cszasz at mac.com
Sun Nov 1 14:45:16 EST 2009
Mark,
Thanks so much! I tried your suggestions and they works beautifully! I
have always use true instead of 0 in scripting checkboxes. So, I also
learn more about scripting groups and checkboxes!
I have thought of using groups but did not have an idea of how to do it.
Charles Szasz
cszasz at mac.com
On Nov 1, 2009, at 2:18 PM, Mark Schonewille-3 [via Runtime
Revolution] wrote:
> Hi charles61,
>
> Make a group of the first 11 checkboxes. Call this group "Marked".
> Group the remaining 13 checkboxes too and call this second group
> "Switch".
>
> Put the following script in your button:
>
> on mouseUp
> if the hilitedButton of grp "Marked" is 0 then
> beep
> answer error "Please, select a category first"
> else if the hilitedButton of grp "Switch" is 0 then
> beep
> answer error "Please check one of the disability areas."
> else
> go first marked cd
> end if
> end mouseUp
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
>
> Download Strõm Flow Chart Software
> http://flowproject.economy-x-talk.com
>
> On 1 nov 2009, at 19:59, charles61 wrote:
>
> >
> > I have two sets of checkboxes. The first set consists of 11
> > checkboxes and
> > the second set consists of 13 checkboxes. I want to script for the
> > user to
> > be able to go another marked card if one or more of the first set of
> > checkboxes are checked AND if one or more of the second set of
> > checkboxes
> > are checked.
> >
> > In the following script I was able to set up the first condition for
> > the
> > first set of checkboxes so the user could go to a marked card:
> >
> > on mouseUp
> > switch
> > case (the hilite of button "check1" = true )
> > go first marked card
> > break
> >
> > case (the hilite of button "check2" = true)
> > go first marked card
> > break
> >
> > case (the hilite of button "check3" = true)
> > go first marked card
> > break
> >
> > case (the hilite of button "check4" = true)
> > go first marked card
> > break
> >
> > case (the hilite of button "check5" = true)
> > go first marked card
> > break
> >
> > case (the hilite of button "check6" = true)
> > go first marked card
> > break
> >
> > case (the hilite of button "check7" = true)
> > go first marked card
> > break
> >
> > case (the hilite of button "check8" = true)
> > go first marked card
> > break
> >
> > case (the hilite of button "check9" = true)
> > go first marked card
> > break
> >
> > case (the hilite of button "check10" = true)
> > go first marked card
> > break
> >
> > case (the hilite of button "check11" = true)
> > go first marked card
> > break
> > default
> > answer information "Please check one of the disability
> areas."
> > end switch
> > end mouseUp
> >
> > My question is how do I add the second condition in my switch
> > statements
> > that one or more of the checkboxes are checked in the second set of
> > checkboxes so that the user can go to the specify marked cards. By
> > the way,
> > the second set of checkboxes do not determine which marked cards the
> > user
> > can to. The second condition of the second checkboxes is only that
> > one or
> > more of the checkboxes are checked.
>
>
> _______________________________________________
> use-revolution mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
> View message @ http://n4.nabble.com/Checking-status-of-checkboxes-tp360614p360615.html
> To unsubscribe from Checking status of checkboxes, click here.
>
--
View this message in context: http://n4.nabble.com/Checking-status-of-checkboxes-tp360614p360620.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the use-livecode
mailing list