web 2.0

VB.NET & Exit Statement

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

VB.NET & Exit Statement
.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

One Response to “VB.NET & Exit Statement”

  1. 1intelligent…

Leave a Reply

You must be logged in to post a comment.