Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

VBScript VarType Function

VBScript VarType Function


VBScript reference manual Complete VBScript Reference Manual


The VarType function returns a value indicating the subtype of a specified variable.

The VarType function returns the following values:

**Note:** If the variable is an array, VarType() returns 8192 + VarType(array_element). For example, VarType() of an integer array returns 8192 + 2 = 8194.

Syntax

VarType(varname)

Parameters Description
varname Required. The name of the variable.

Example

Example

The example above produces the following output:

8

2

5

1

0

11

Try it »


VBScript reference manual Complete VBScript Reference Manual