I’m in the process of upgrading a legacy VB program and I found this
vbnet
10:
For x as integer = 1 to whatever
if x = 1 then goto 20
dosomethingelse
20: Next
I’m gonna use this more often, it’s cool.
This is an archive of the posts published to LessThanDot from 2008 to 2018, over a decade of useful content. While we're no longer adding new content, we still receive a lot of visitors and wanted to make sure the content didn't disappear forever.
I’m in the process of upgrading a legacy VB program and I found this
vbnet
10:
For x as integer = 1 to whatever
if x = 1 then goto 20
dosomethingelse
20: Next
I’m gonna use this more often, it’s cool.