Go Down

Topic: Ussing the togo command or creating subroutines (Read 1 time) previous topic - next topic

seag2013

Hi I'm new with Arduino and I'm using the TFT touch shield from Seeed studio.

I want to be able to go to different parts of my program like creating subroutines " pages"  on my touch screen.  on each page I want to  control or receive inputs from different devices.  I'm trying the togo command it works only to one page but as I add a another page  it sometimes go to the correct page  or to the other  page.  what is the best way to move to a section of a program and work there, without  going back until I want to.

billroy


ash901226

maybe what you could do is the use the switch statement...

AWOL

Quote
I'm trying the togo command

It's "goto", and should only be used when you really know what you're doing.
Try to pretend it doesn't exist.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

holmes4

Anyone using goto's in ther code should be flogged!.

Mark

Go Up