Results 1 to 4 of 4

Thread: Goto

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Posts
    71

    Question

    Is there a way to do something like this , suppose i am have finished executing a procedure in my module then i want to go to the last line of another procedure in my form. Is this possible?

  2. #2
    Guest
    Code:
    Sub MySub(ByVal GotoLastLine As Boolean)
        If GotoLastLine = True Then Goto LastLine
        Print 1
        Print 2
    LastLine:
        Print 3
    End Sub

  3. #3
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    keep in mind that in the next version of vb the goto goes away.
    You should put that last line in its own procedure if it needs to be used more than once.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  4. #4
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    I checked this one for another question m'lord
    keep in mind that in the next version of vb the goto goes away.
    VB7 still supports the goto, even though I read they wanted to take it out too.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

Posting Permissions

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



Click Here to Expand Forum to Full Width