Type: String literal
A subroutine name
Passes execution to a specified line within a procedure
label must be a line label
GoTo can branch only to lines within the procedure
where it appears.
It is not permitted to branch from outside a
Try...Catch...Finally block to a point inside the
It is also not permitted to branch from within the
Finally block to a
label outside the block.
GoTo statement is most commonly used with the
Error statement to direct
control to an error-handling routine.
GoTo is frequently used to control program flow
within a procedure, a technique that often produces highly unreadable
“spaghetti code.” Accordingly,
great care should be taken when using the
In VB 6,
label could be either a line
number or a label. In VB.NET,
label can be
only a label.