Repeat .... UNTIL code


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Repeat .... UNTIL code

    Maybe that is not your whole code? But basically code should be structured something like:
    Code:
    MAIN:
    'Do stuff
    GOSUB SubCode  'Jumps to label SubCode
    GOTO SomeCodeBlock
    GOTO MAIN  ' Goes back to MAIN label
    
    
    SomeCodeBlock:
    'Do Stuff
    GOTO MAIN ' Goes back to MAIN label
    
    SubCode:
    'Do Stuff
    RETURN ' Takes you back to the line after the GOSUB
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default Re: Repeat .... UNTIL code

    You should read the Termos value within the Repeat/Until loop, or you will never exit from the loop.

    Cheers

    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