Gosub in a while loop Question


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2006
    Posts
    747

    Default Gosub in a while loop Question

    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

  2. #2
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    While outside the WHILE/WEND loop the portA.6 change will not exit the WHILE/WEND.

    Al.
    All progress began with an idea

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts