Vous êtes sur le site Web historique de la documentation de 4D. Les documentations sont progressivement déplacées vers developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v19
TYPE
|
TYPE ( value ) | ||||||||
Paramètre | 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
Produit : 4D
Thème : Formules 4D View Pro
Nom intl. : TYPE
4D View Pro ( 4D v19)