Easy Tutorial
❮ Func String Func Right ❯

VBScript VarType Function



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, the VarType() of an Integer array will return 8192 + 2 = 8194.

Syntax

Parameter Description
varname Required. The name of the variable.

Example

Example

The above example outputs:


❮ Func String Func Right ❯