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 |
---|---|---|
vbArray |
8192 |
Array |
vbBoolean |
11 |
Boolean |
vbByte |
17 |
Byte |
vbCurrency |
6 |
Currency |
vbDataObject |
13 |
Data Object |
vbDate |
7 |
Date |
vbDecimal |
14 |
Decimal (unavailable in VBScript) |
vbDouble |
5 |
Double |
vbEmpty |
0 |
Empty |
vbError |
10 |
Error |
vbInteger |
2 |
Integer |
vbLong |
3 |
Long |
vbNull |
1 |
Null |
vbObject |
9 |
Object |
vbSingle |
4 |
Single |
vbString |
8 |
String |
vbVariant |
12 |
Variant |
Part I: The Basics
Introduction
Program Structure
Data Types and Variables
Error Handling and Debugging
VBScript with Active Server Pages
Programming Outlook Forms
Windows Script Host 5.6
VBScript with Internet Explorer
Windows Script Components
Part II: Reference
Part III: Appendixes
Appendix A. Language Elements by Category
Appendix B. VBScript Constants
Appendix C. Operators
Appendix E. The Script Encoder