TypeName function (LotusScript® Language)

Returns a string identifying the data type of the value of an expression.

Syntax

TypeName ( expr )

Elements

expr

Any expression.

Return value

Value of expr

Return value

Storage of variable

EMPTY

"EMPTY"

In Variant only

NULL

"NULL"

In Variant only

Boolean

"BOOLEAN"

Byte

"BYTE"

Integer

"INTEGER"

Long

"LONG"

Single

"SINGLE"

Double

"DOUBLE"

Currency

"CURRENCY"

Date

"DATE"

In Variant only

String

"STRING"

NOTHING

"OBJECT"

OLE object

"OBJECT"

In Variant only

OLE error

"ERROR"

In Variant only

V_UNKNOWN (OLE value)

"UNKNOWN"

In Variant only

User-defined object or product object

The name of the object class, as an uppercase string.

For example, for an object of the Employee class, LotusScript® returns "EMPLOYEE."

List

The name of the list data type, plus the word "LIST," all as an uppercase string.

For example, for a list of type String, LotusScript® returns "STRING LIST."

Array

The name of the array data type as an uppercase string, followed by parentheses enclosing one space.

For example, for an integer array, LotusScript® returns "INTEGER( )."

Example