VB.NET & Exit Statement - Exit Statement : Exits a procedure or block and transfers control immediately to the statement following the procedure call or the block definition.
ShotDev Focus:
- VB.NET & Exit Statement
Syntax
Exit { Do | For | Function | Property | Select | Sub | Try | While }
Example
AspNetExit.aspx
<%@ Page Language="VB" %> <script runat="server"> Sub Page_Load(sender As Object, e As EventArgs) Dim i As Integer i = 0 Do i = i + 1 Response.write("www.ShotDev.Com<br>") If i = 3 Then Exit Do End IF Loop While i <= 5 End Sub </script>
Screenshot
1intelligent…
…