passList = [] -- or [:] if necessary SendallSprites(#CollectInformationFromAllTheRadioButtons, passlist)
then do stuff with passlist....because your other handler does:
on CollectInformationFromAllTheRadioButtons me, thisList thislist.append(pbState) end
roymeo
At 11:58 AM 8/24/2004, you wrote:
Hi list
A minor conundrum is at hand. I'm building a simple form and one question consists of a number of checkboxes, each one with its own unique numeric value. They are checkboxes because the user can select any number of them.
When the form is submitted I want to total up the values returned by those checkboxes. I was originally going to use sendAllSprites to send a message to all checkboxes within a specified group, who would in turn report back their numeric value if they were checked.
The problem is though is that the return value for, say, checkbox #2 will overwrite the value of checkbox #1 before i can collate all results to total them up, and given my post-injury fatigue my brain has gone dead on how to get around it lol.
Rough pseudocode of what I was going to do:
-- calling routine result = sendAllSprites(#GetCheckboxValues, "myCheckboxGroupID")
-- inside the checkbox behaviour property pThisGroupID -- unique ID for this checkbox group property pSelected -- boolean for checked state property pMyValue -- value of this checkbox
on GetCheckboxValues me, groupID if groupID = pThisGroupID and pSelected then return pMyValue end
So as you can see, the variable "result" will be overwritten with each message in response to sendAllSprites.
Any ideas?
TIA
Ross
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
----------- Roy Crisman Macromedia Director Programmer, Lingo Guru, Multimedia Producer Greater Rochester Macromedia User Group (GRMMUG.org) Coordinator 277 N. Goodman St. Rochester, NY 14607-1162 (585)473-3492 home (585)615-2873 cell roymeo(AT)brokenoffcarantenna.com
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
