9.0

165
Function Exit the Function block. Note: This instruction clears the Err and sets Error$ to null.
Property Exit the Property block. Note: This instruction clears the Err and sets Error$ to null.
Sub Exit the Sub block. Note: This instruction clears the Err and sets Error$ to null.
While Exit the While loop.
Example
Sub Main
L$ = InputBox
$("Enter Do, For, While, Sub or All:")
Debug
.Print "Before DoSub"
DoSub UCase
$(L$)
Debug
.Print "After DoSub"
End
Sub
C:\ABCTemp\vbs\Sub_Definition.htm
Sub
DoSub(L$)
Do
If
L$ = "DO" Then Exit Do
I = I+1
Loop While I < 10
If
I = 0 Then Debug.Print "Do was entered"
C:\ABCTemp\vbs\For_Statement.htm
For
I = 1 To 10
If
L$ = "FOR" Then Exit For
Next I
If
I = 1 Then Debug.Print "For was entered"
I = 10
While
I > 0
If
L$ = "WHILE" Then Exit While
I = I-1
Wend
If
I = 10 Then Debug.Print "While was entered"
C:\ABCTemp\vbs\If_Statement.htm
If
L$ = "SUB" Then Exit Sub
Debug
.Print "Sub was not entered."
If
L$ = "ALL" Then Exit All
Debug
.Print "All was not entered."
End
Sub
Exp Function
Syntax
Exp(Num)
Group
Math
Description
Return the exponential.
Parameter Description
Num Return e raised to the power of this numeric value. The value e is approximately