VarType Function


VarType( varname )

Returns a value that indicates how the parameter varname is stored internally.

The parameter varname is a variant data type.

VarType

return values:

Empty

0

Null

1

Integer

2

Long

3

Single

4

Double

5

Currency

6 (not available at this time)

Date/Time

7

String

8

 

Example:

    If VarType(x) = 5 Then Print "Vartype is Double"   ' Display variable type.

 


Related Topic:

IsNull

IsNumeric