Ok, in general, I know to avoid GoTo - my instructors all said the same thing. BUT...
I'm working on a program, and I want to timeout and move on after a given period of user inactivity. So, when I present a question to a user I set the interval and start (enable) a timer object. If the user answers, I turn the timer off (enable = False), but if the user doesn't answer, it automatically goes into the Timer1_Timer function. From there, i want to go back to a different section of my code, bypassing a section. Is there any way to do this WITHOUT a GoTo? I'm open to suggestions, but just can't think of anything else myself.
Thanks in advance.
~Lindsay
P.S. If GoTo IS the right thing to do, I tried using one, but I get the error "Compile Error: Label Not Defined" Any suggestions for this?
I'm working on a program, and I want to timeout and move on after a given period of user inactivity. So, when I present a question to a user I set the interval and start (enable) a timer object. If the user answers, I turn the timer off (enable = False), but if the user doesn't answer, it automatically goes into the Timer1_Timer function. From there, i want to go back to a different section of my code, bypassing a section. Is there any way to do this WITHOUT a GoTo? I'm open to suggestions, but just can't think of anything else myself.
Thanks in advance.
~Lindsay
P.S. If GoTo IS the right thing to do, I tried using one, but I get the error "Compile Error: Label Not Defined" Any suggestions for this?