Results 1 to 2 of 2
  1. #1
    Silver Lounger
    Join Date
    Dec 2000
    Location
    California, USA
    Posts
    1,758
    Thanks
    0
    Thanked 0 Times in 0 Posts

    GoTo Statement (XP)

    Is it possible to have a GoTo statement in one subroutine referencing a different subroutine.

    Example:

    Sub Rountine_01()
    Code.blah blah blah
    Code.blah blah blah
    If oSTS = 1001 Then
    GoTo Routine_02: Continue_Here 'Notice that it is referring to a different subroutine
    End If
    End Sub

    Sub Routine_02()
    Code.blah blah blah

    Continue_Here:
    More code

    End Sub


    Thanks,
    John

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: GoTo Statement (XP)

    No. I'd make the "More code" into a separate procedure that can be called from both Rountine_01 and from Routine_02.

Posting Permissions

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