VBScript VarType Function

The VarType function returns a value that indicates the subtype of a specified variable."

Example

Example

<%

x="Hello World!"
response.write(VarType(x) & "<br />")
x=4
response.write(VarType(x) & "<br />")
x=4.675
response.write(VarType(x) & "<br />")
x=Null
response.write(VarType(x) & "<br />")
x=Empty
response.write(VarType(x) & "<br />")
x=True
response.write(VarType(x))

%>

The output of the code above will be:

8
2
5
1
0
11

❮ Complete VBScript Reference