9.0

242
variable is defined. A dynamic array is declared using ( ) without any dims. It must be ReDimensioned before it can
be used.
See Also: Dim
, Option Base, Private, Public, ReDim.
Example
Sub A
Static X
Debug.Print X
X = "Hello"
End
Sub
C:\ABCTemp\vbs\Sub_Definition.htm
Sub
Main
A
A ' prints "Hello"
End
Sub
Stop Instruction
Syntax
Stop
Group
Flow Control
Description
Pause execution. If execution is resumed then it starts at the next instruction. Use End to terminate the macro
completely.
Example
Sub Main
For
I = 1 To 10
Debug
.Print I
If
I = 3 Then Stop
Next I
End
Sub
Str definition
An expression that returns a string result.
"Hello"
S$
S$ + " Goodbye"
S$ & " Goodbye"
Mid
$(S$,2)