9.0

258
vbVariant 12 Variable contains a variant value.
(
Onl
y
used for arra
y
s of variants.
)
vbDataObject 13 Variable contains a non-ActiveX Automation object reference.
vbDecimal 14 Variable contains a 96 bit scaled real.
vbByte 17 Variable contains a byte value.
vbUserDefinedType 36 Variable contains a User Defined Type value.
+vbArray 8192 Variable contains an arra
y
value. Use VarT
yp
e
(
)
And 255 to
g
et the
type of element stored in the array.
See Also: TypeName.
Example
Sub Main
Dim
X As Variant
Debug
.Print VarType(X) ' 0
X = 1
Debug
.Print VarType(X) ' 2
X = 100000
Debug
.Print VarType(X) ' 3
X = 1.1
Debug
.Print VarType(X) ' 5
X = "A"
Debug
.Print VarType(X) ' 8
Set
X = CreateObject("Word.Basic")
Debug
.Print VarType(X) ' 9
X = Array
(0,1,2)
Debug
.Print VarType(X) ' 8204 (8192+12)
End
Sub
Wait Instruction
Syntax
Wait Delay
Group
Miscellaneous
Description
Wait for Delay seconds.
Examples
Sub Main
Wait 5 ' wait for 5 seconds
End
Sub
Sub Main
Wait 0.5 ' wait for ½ second
End
Sub