Note These constants are specified by VBScript. As a result, the names can be used anywhere in your code in place of the actual values.
The VarType function never returns the value for Array by itself. It is always added to some other value to indicate an array of a particular type. The value for Variant is only returned when it has been added to the value for Array to indicate that the argument to the VarType function is an array. For example, the value returned for an array of integers is calculated as 2 + 8192, or 8194. If an object has a default property, VarType(object) returns the type of its default property.
The following example uses the VarType function to determine the subtype of a variable.