Using
Return Statement[
^] inside a
Do While .. Loop
loop causes return to the calling procedure.
It is quite easy to check:
Sub Main
DoSomething()
End Sub
Sub DoSomething()
Dim i As Integer = 0
Do While i < 100
Console.WriteLine("Current value of counter is: {0}", i)
i+=1
Return
Loop
End Sub
Result:
Current value of counter is: 0
Follow the link to get more details.