Thursday, September 2, 2010

Data Types

VBScript has only one data type called a Variant. A Variant can contain different kinds of information, depending on how it is used.

Variant can contain one of the following types
Empty - Variant is uninitialised. Value is 0 for numeric variables or a zero-length string ("") for string variables
Null - Intentionally contains no valid data
Boolean - Contains either True or False
Byte - Contains integer in the range 0 to 255
Integer - Contains integer ranging from 0 to 255
Currency - Contains values between -922,337, 203, 685, 477.5808 to 922,337, 203, 685, 477.5807
Long - Contains integer in the range -2,147,483,648 to 2,147,483,647
Single - Contains a single-precision
Double - Contains a double-precision
Date - Contains a number that represents a date between January 1, 100 to December 31, 9999.
String - Contains a variable-length string that may approximately contain 2 billion characters in length
Object - Contains an object
Error - Contains an error number

No comments:

Post a Comment