TYPEOF()

From Lianjapedia
Revision as of 20:52, 26 March 2019 by Barrymavin (Talk | contribs)

Jump to: navigation, search

Purpose

Function to return the data type of an expression

Syntax

TYPEOF(<expC>)

See Also

ATOH(), BIN2I(), BIN2L(), BIN2W(), CAST(), CTOD(), CTOT(), DTOC(), DTOM(), DTOS(), DTOV(), ERROR(), ERRNO(), ETOS(), HTOA(), I2BIN(), ISALPHA(), ISDIGIT(), L2BIN(), MESSAGE(), MTOS(), STR(), STRZERO(), TTOC(), TTOD(), TYPE(), VAL(), VARTYPE(), VTOD()

Description

The TYPEOF() function returns the data type of the expression in <expC> as a character string. The return value is one of the following:

Return Value
array
boolean
currency
date
datetime
null
number
object
string
undefined

Example

? typeof("10.05 * 23.87")
number
? typeof("'Hello World'")
string
cVar = "Hello World"
? typeof("cVar")
string
unset(cVar)
? typeof("cVar")
U