PDA

View Full Version : Gosub in a while loop Question



lerameur
- 26th November 2010, 14:21
Hello,

I have a Gosub inside a while loop. I wanted to know if when the program is inside the Gosub
will it react to the while loop ? or does it wait to directly within the while loop?
thanks K

While PORTA.6 != 1 'Hold the time on LCD until 'NEXT' button is pushed again
lcdout $FE,1, " time: ", dec Counter
lcdout $FE,$C0, dec Voltage
pause 1000
Gosub Hold_menu_1
Wend

aratti
- 26th November 2010, 16:42
While outside the WHILE/WEND loop the portA.6 change will not exit the WHILE/WEND.

Al.