VARTYPENAME

Action

Returns a string that provides type information about a variable.

 

Syntax

VARTYPENAME ($variable)

 

Parameters

Variable

Any type of variable.

Returns

Byte

Byte value

Char

Single character 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

Unitialized

Null

No valid data

Object

Generic object

Unknown

Unknown object type

Nothing

Object variable that doesn't yet refer to an object instance

Error

Error

[ ]

Array (can only occur in combination with one of the other values)

 

Example

? VarTypeName("KiXtart")    ; Displays "String".

? VarTypeName(4)            ; Displays "Long".

? VarTypeName(37.50)        ; Displays "Double".

? VarTypeName($ArrayVar)     ; Displays "Variant[]".