To be fair it was a very dumb question. Thank you so much I was able to figure things out partially due to experimentation and partially due to your help I now am able to implement a fourth state. Now after a lot of pain I've learned how to create cycling states thru noiasca's hard work.
I have a short simple additional question at this point. Am grateful for anyone who answers: for the below line:
enum class State {FIXTEXT=0, RUNTIME=1, RANDOM=2, QUOTES=3} state;
I am interested in being able to cycle these modes. Am I allowed to simply do this as is and how would i cycle this in terms of just altering the state or State value to go up or down in a line of code? (don't look at the whole wasleftpressed method or the wasselectpressed method), do i need to cast this?
All I would like to know from the forum is how to I write that line of code to assign the states numerical value and is incrementing and decrementing the state as simple as doing something such as
state= state +1;
state = state-1;
where applicable.
I am trying to do as much as I can without asking you guys too much. Appreciate any guidance. I am miles ahead of where I was before thanks to your help.
EDIT: I am trying to decide at this exact moment if I want to just cycle the states thru manual handing off in the RUNFSM method (THIS WOULD ENTAIL MY UNDERSTANDING IS NOT HAVING INTEGERS AT ALL) or if I want to even bother to implement the numerical idea. So don't go too crazy. I think having numerical values for state or States would help me but i have to think about it.