TypeName

This function retrieves a string that provides Variant subtype information about a variable.

Syntax

TypeName(varname)

Parameters

varname
Any variable.

Return Values

The following table shows the return values for the TypeName function.

Value
Description
Byte Byte value
Integer Integer value
Long Long integer value
Single Single-precision floating-point value
Double Double-precision floating-point value
Currency Currency value
Decimal Decimal value
Date Date or time value
String Character string value
Boolean Boolean value; True or False
Empty Uninitialized
Null No valid data
<object type> Actual type name of an object
Object Generic object
Unknown Unknown object type
Nothing Object variable that does not yet refer to an object instance
Error Not supported