This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v19
TYPE

TYPE 


 

TYPE ( value ) 
Parameter Type   Description
value  in Value to evaluate

The TYPE function returns the type of value as a number.

Returned types are listed below:

Type of valueReturned number
Number1
DateTime object1
TimeSpan object1
Text2
Boolean4
Error16
Array64

Use the TYPE function when the execution of another function depends on the type of value contained in a specific cell. The TYPE function is particularly useful when calling functions that accept different types of data.

Example  

TYPE(G15)

TYPE(42) //1

TYPE("String") //2

TYPE(TRUE) //4

 
PROPERTIES 

Product: 4D
Theme: 4D View Pro Formulas

 
PAGE CONTENTS 
 
HISTORY 

 
ARTICLE USAGE

4D View Pro Reference ( 4D v19)