Answer: Exit is an alternative in VB.Net.It is used to exit IF condition and While loop.
For Ex:-
If condition = True/False Then
Exit If
End If
For i As Integer = 1 To cnt-1
If condition = True/False Then
Exit For
End If
Next
Asked In: Many Interviews |
Alert Moderator