Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: Loop While advice |
| From: | Paul Kaiser |
| Date: | Thu, 12 Aug 1999 17:22:08 +0100 |
I had a similar situation that some kind lady helped me with on the list.
Have each of your buttons increment a variable by a certain amount if checked:
Button 1 adds 1 to "theVar" when checked, subtracts 1 when unchecked
Button 2 adds 2 to "theVar" when checked, sub 2 unchecked
Button 3 adds 4 to "theVar" when checked, sub 4 unchecked
Button 4 adds 8 to "theVar" when checked, sub 8 unchecked
Now you only need to do one if statement to check for the appropriate
action you want to take based on the buttons. Check "theVar" for its value.
It will be unique from 0 (none checked) to 15 (all checked).
Hope this helps.
Paul Kaiser
>I have solved this the straight-forwardly, obvious way (to me) by having
>16 If/Else If statements.
------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manager
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manager
Replies
Re: FLASH: Loop While advice, yan
Replies
FLASH: Loop While advice, yan
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

