9.0
164
Eval Function
Syntax
Eval(Expr[, Depth])
Group
Miscellaneous
Description
Return the value of the string expression as evaluated.
Parameter Description
Expr Evaluate this string value.
Depth This inte
g
er value indicates how dee
p
into the stack to locate the local variables. If
Depth = 0 then use the current procedure. If this value is omitted then the de
p
th is
0.
Example
Sub Main
Dim
X As String
X = "Hello"
Debug
.Print Eval("X") 'Hello
A
End Sub
Sub
A
Dim
X As String
X = "Bye"
Debug
.Print Eval("X") 'Bye
Debug
.Print Eval("X",1) 'Hello
End
Sub
Exit Instruction
Syntax
Exit {All|Do|For|Function|Property|Sub|While}
Group
Flow Control
Description
The exit instruction causes the macro to continue with out doing some or all of the remaining instructions.
Exit Description
All Exit all macros.
Do Exit the Do loop.
For Exit the For of For Each loop.










