This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v19
TYPE
|
TYPE ( value ) | ||||||||
Parameter | Type | Description | ||||||
value |
![]() |
Value to evaluate | ||||||
The TYPE function returns the type of value as a number.
Returned types are listed below:
Type of value | Returned number |
Number | 1 |
DateTime object | 1 |
TimeSpan object | 1 |
Text | 2 |
Boolean | 4 |
Error | 16 |
Array | 64 |
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.
TYPE(G15)
TYPE(42) //1
TYPE("String") //2
TYPE(TRUE) //4
Product: 4D
Theme: 4D View Pro Formulas
4D View Pro Reference ( 4D v19)