6.1.2.7.1.12 TypeName

Function Declaration

 Function TypeName(Arg As Variant) As String 

Parameter

Description

Arg

Any data value.

 

Runtime Semantics.

§ Returns a String that provides information about a variable.

§ The string returned by TypeName can be any one of the following:

Value type of data value of Arg

String data value returned

An object whose type is Object

The name of the object type

Byte

"Byte"

Integer

"Integer"

Long

"Long"

LongLong

"LongLong"

Single

"Single"

Double

"Double"

Currency

"Currency"

Decimal

"Decimal"

Date

"Date"

String

"String"

Boolean

"Boolean"

An error value or Missing

"Error"

Empty

"Empty"

Null

"Null"

Any Object Reference except Nothing

"Object"

An object whose type is unknown

"Unknown"

Nothing

"Nothing"

§ If Arg is an array, the returned string can be any one of the possible returned strings (or Variant) with empty parentheses appended. For example, if Arg is an array of Integer, TypeName returns "Integer()". If Arg is an array of Variant values, TypeName returns "Variant()".