TypeName()

Top  Previous  Next

TypeName() - Return Variable Subtype Name

Description

The TypeName() function returns the name representing the subtype of the supplied variable.

TypeName(Variable)

Example

MyVar = "The quick brown fox"

MyType = TypeName(MyVar) 'returns String

 

Dim MyArray(2)

MyArray(0) = "Apples"

MyArray(1) = "Oranges"

MyType = TypeName(MyArray) 'returns Variant()

 

MyType = TypeName(4) 'returns Integer

MyType = TypeName(2332134) 'returns Long