+ Reply to Thread
Results 1 to 4 of 4

variable line number

  1. #1
    Registered User
    Join Date
    07-14-2012
    Location
    Walkerton, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    29

    variable line number

    Is it possible to use variable line numbers?

    I assigned a variable but the goto statement comes up with a "Label not defined".

    rNum=Line20
    goto rNum

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: variable line number

    No, line numbers are set at compile time.

    Aside from that, Goto's make code hard to read and debug. There are better flow constructs available.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    07-14-2012
    Location
    Walkerton, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: variable line number

    thank for the response.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: variable line number

    You're welcome, good luck.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1