View Single Post
  #2   Spotlight this post!  
Unread 12-01-2009, 16:34
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,618
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: More than boolean Case Structure...

If your cases can be more easily separated into a bunch of numbers (Case 1, Case 2, Case 99) just create an enum or ring control with all of your cases listed in it and use that instead of a bunch of buttons.

If you're set on using a bunch of buttons to create a sort of binary tree, (Red/Blue Alliance, Turn Left/Right, etc.), then you could put all of your button outputs into a boolean array and use the "convert boolean array to number" function to get the integer equivalent of the binary number represented by your button states. You'd have to keep track yourself of which state number means what, however.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote