VBScript
Variants and Subtypes
VBScript has a single data type called a variant. Variants have the ability to store different types of data. The types of data that a variant can store are referred to as subtypes.
The table below describes the subtypes supported by VBScript.
| Subtype | Description of Uses for Each Subtype |
|---|---|
| Byte | Integer numbers between 0 to 255 |
| Boolean | True and False |
| Currency | Monetary values |
| Date | Date and time |
| Double | Extremely large numbers with decimal points |
| Empty | The value that a variant holds before being used |
| Error | An error number |
| Integer | Large integers between -32,768 and 32,767 |
| Long | Extremely large integers (-2,147,483,648 and 2,147,483,647) |
| Object | Objects |
| Null | No valid data |
| Single | Large numbers with decimal points |
| String | Character strings |