Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Function Declaration
-
Function TypeName(Arg As Variant) As String
|
Parameter |
|
|---|---|
|
Arg |
|
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()".