What are Variants?
VbScript deals with a single datatype called variant. Datatype means the kind of the data a variable will store.It can be a character data,string data,number data , byte data and a Boolean data. But you don’t have to worry in Vb Script as it only has a datatype of variant to store any type of data.
|
Sub Type |
Description |
|
Boolean |
True or False |
|
Integer |
Integers between –32768 and 32767 |
|
Long |
Long data between –2147483648 and 2147483647 |
|
String |
Character Strings |
|
Single |
Large Number with decimal points |
|
Null |
No valid data |
|
Currency |
Monetary values |
|
Byte |
Integers from 0 and 255 |
|
Date |
Date and time |
|
Double |
Large numbers with decimal points |