Variable Type Constants
The VarType constant returns one of the following constants to
indicate the data subtype of the variable passed to it as a
parameter. The exception is an array, which returns a value of 8204,
or vbArray Or vbVariant
.
Constant |
Value |
Description |
---|---|---|
|
8192 |
Array |
|
11 |
Boolean |
|
17 |
Byte |
|
6 |
Currency |
|
13 |
Data Object |
|
7 |
Date |
|
14 |
Decimal (unavailable in VBScript) |
|
5 |
Double |
|
0 |
Empty |
|
10 |
Error |
|
2 |
Integer |
|
3 |
Long |
|
1 |
Null |
|
9 |
Object |
|
4 |
Single |
|
8 |
String |
|
12 |
Variant |
Get VBScript in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.