What is an alternative of return in vb.net?

 Posted by vishalneeraj-24503 on 11/3/2014 | Category: .NET Framework Interview questions | Views: 375 | Points: 40
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 

Comments or Responses

Login to post response