Flow-control structures: Difference between revisions

Visual basic
(Visual basic)
Line 528:
puts [string length $myline]
}
 
=={{header|Visual Basic .NET}}==
 
=== Goto ===
 
This creates an infinite loop.
 
Sub foo()
Dim x = 0
label: x = 5
GoTo label
End Sub