variables and gosubs???


Results 1 to 39 of 39

Threaded View

  1. #10
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    I'll try something...

    Code:
    StartPoint:
        Gosub Somewhere
    Label1:
        Pause 100
        Goto Start
    Somewhere:
        Pause 1
        Return
    Nothing hard here right? after the Return... you return to Label1 ... right?

    Now...
    Code:
    StartPoint:
        Gosub Somewhere
    Label1:
        Pause 100
        Goto Start
    Somewhere:
        Goto SomewhereElse
        z: goto z    
    
    SomewhereElse:
        Return
    Same thing happen here...

    This said...

    Code:
    Start:                         
          for routines=0 to 3
    StartPoint:
              gosub subselect
    ReturnPoint:
              pause 200
              next
        goto start
    
    SubSelect:
              branchl routines, [Routine0, Routine1, Routine2, Routine3]    
              
    Routine0:
             return
    Where the Return of Routine0 leads you?... to ReturnPoint

    I know i'm a pretty bad teacher...
    Last edited by mister_e; - 18th November 2006 at 20:02.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

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