Data Types:

          VBScript supports only one data type called ‘Variant’.
          The variant data type is a special kind of data type that can contain different kinds of information.
          It is the default data type returned by all functions in VBScript.
          At its simplest, a Variant can contain either numeric or string information.
          A variant behaves as a number when it is used in a numeric context and as a string when used in a string context.
          Subtypes of data that a variant can contain:
        Empty, Boolean, Integer, Long, Single, Byte, Double, Date Time, string, Object, Error.

Description
Subtype
Variant is uninitialized. Value is 0 for numeric variables or a zero-length string ("") for string variables.
Empty
Variant intentionally contains no valid data.
Null
Contains either True or False.
Boolean
Contains integer in the range 0 to 255.
Byte
Contains integer in the range -32,768 to 32,767.
Integer
-922,337,203,685,477.5808 to 922,337,203,685,477.5807.
Currency
Contains integer in the range -2,147,483,648 to 2,147,483,647.
Long
Contains a single-precision, floating-point number in the range -3.402823E38 to -1.401298E-45 for negative values; 1.401298E-45 to 3.402823E38 for positive values.
Single
Contains a double-precision, floating-point number in the range -1.79769313486232E308 to -4.94065645841247E-324 for negative values; 4.94065645841247E-324 to 1.79769313486232E308 for positive values.
Double
Contains a number that represents a date between January 1, 100 to December 31, 9999.
Date
Contains a variable-length string that can be up to approximately 2 billion characters in length.
String
Contains an object.
Object
Contains an error number.
Error

No comments:

Post a Comment