Thread: CodeProblem
View Single Post
  #3   Spotlight this post!  
Unread 15-02-2015, 21:43
Cyan's Avatar
Cyan Cyan is offline
Vegeta SSJ4
AKA: Sayan Dutta
FRC #2642 (Pitt Pirates)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2014
Location: Utopia
Posts: 27
Cyan is an unknown quantity at this point
Re: CodeProblem

Quote:
Originally Posted by legts View Post
I think I know what your problem is. If, and if being the key word, button1 works, then my theory is correct. When declaring buttons, you need to have then declared exactly as button1 is declared. Namely, having "Button" before the button name. Hope I helped!
I don't believe this is the problem. Notice there are commas instead of semicolons at the end of each line; this should be the correct syntax.


As for AnnaliseDonavan, could you be more specific in your question? Also, which IDE do you use? Your code is relatively messy, so if you could show me one instance where your code does not work, you could troubleshoot through that pathway and follow example with the rest of the buttons.