Determining When Option Menus Have Changed
Brad Sampson
programmer711 at gmail.com
Wed Dec 13 00:36:44 EST 2006
I'm not sure I understand what you're asking. Do you want to send the
message if any combination of 2 option menus have been changed? You
could just go through each menu and check if it is the original value.
If it is, you add 1 to a variable. At the end, you check if the
number is 2 or more. Like this:
put 0 into vNum
if the label of button "optionmenu1" is "defaultlabel" then add 1 to vNum
if the label of button "optionmenu2" is "defaultlabel" then add 1 to vNum
if the label of button "optionmenu3" is "defaultlabel" then add 1 to vNum
if the label of button "optionmenu4" is "defaultlabel" then add 1 to vNum
if the label of button "optionmenu5" is "defaultlabel" then add 1 to vNum
if the label of button "optionmenu6" is "defaultlabel" then add 1 to vNum
if vNum>=2 then dosomething
This might not be the most efficient way to do it, but it works fine.
Brad
CMSEC
More information about the use-livecode
mailing list