GetType()
Devuelve el tipo de tiempo de ejecución de su único argumento.
El tipo de tiempo de ejecución puede ser diferente del tipo nominal (estático) para expresiones cuyo tipo nominal es dynamic; en estos casos, gettype() puede ser útil para revelar el tipo del valor real (cómo se codifica el valor en la memoria).
Sintaxis
gettype(Expandir)
Devoluciones
Serie que representa el tipo de tiempo de ejecución de su único argumento.
Ejemplos
| Expresión | Devoluciones |
|---|---|
gettype("a") |
string |
gettype(111) |
long |
gettype(1==1) |
bool |
gettype(now()) |
datetime |
gettype(1s) |
timespan |
gettype(parse_json('1')) |
int |
gettype(parse_json(' "abc" ')) |
string |
gettype(parse_json(' {"abc":1} ')) |
dictionary |
gettype(parse_json(' [1, 2, 3] ')) |
array |
gettype(123.45) |
real |
gettype(guid(12e8b78d-55b4-46ae-b068-26d7a0080254)) |
guid |
gettype(parse_json('')) |
null |