Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

visual basic goto command?

is there any command to tell visual basic programming to skip to another location in the code, preferably farther down, to a specific point?

6 Answers

Relevance
  • piquet
    Lv 7
    1 decade ago
    Favorite Answer

    it is the command goto that you can use, here is an example:

    goto go_from_here

    msgbox "i just got skipped!"

    go_from_here:

    msgbox "i didn't get skipped!"

    you just use the name with a : afterwards to specify a section of code. if you used the above you'd get a box saying 'i didn't get skipped!'

  • ?
    Lv 4
    4 years ago

    Visual Basic Goto

  • 6 years ago

    This Site Might Help You.

    RE:

    visual basic goto command?

    is there any command to tell visual basic programming to skip to another location in the code, preferably farther down, to a specific point?

    Source(s): visual basic goto command: https://shortly.im/h2bTE
  • lolita
    Lv 4
    5 years ago

    Vba Goto Statement

  • How do you think about the answers? You can sign in to vote the answer.
  • Nick F
    Lv 6
    1 decade ago

    Using goto is bad program design, create methods/functions if you need to execute other code.

  • 1 decade ago

    yes. visual basic allows for "tagging" of areas. they are generally not used except for the onerror function, as a typical if-else statement can normally do the job

Still have questions? Get your answers by asking now.