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 |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access