Name
tuple_type_elemtuple_type_elemTupleTypeElemtuple_type_elemTupleTypeElemTupleTypeElem — Return the types of the elements of a tuple.
tuple_type_elem( : : T : Types)
Herror tuple_type_elem(double T, Hlong* Types)
Herror T_tuple_type_elem(const Htuple T, Htuple* Types)
Herror tuple_type_elem(const HTuple& T, Hlong* Types)
Herror tuple_type_elem(const HTuple& T, HTuple* Types)
tuple_type_elemtuple_type_elemTupleTypeElemtuple_type_elemTupleTypeElemTupleTypeElem returns the types of the elements of the input tuple
TTTTTt. The types are returned separately as integer values in the output
parameter TypesTypesTypesTypesTypestypes. In HDevelop the corresponding constants are
defined:
-
H_TYPE_INT (1).
-
H_TYPE_REAL (2).
-
H_TYPE_STRING (4).
Exception: Empty input tuple
If the input tuple is empty, the operator returns an empty tuple.
HDevelop In-line Operation
HDevelop provides an in-line operation for tuple_type_elemtuple_type_elemTupleTypeElemtuple_type_elemTupleTypeElemTupleTypeElem,
which can be used in an expression in the following syntax:
Types := type_elem(T)
- Multithreading type: independent (runs in parallel even with exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
TTTTTt (input_control) number(-array) → HTupleHTupleHTupleVARIANTHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*) (double / Hlong / BSTR) (double / Hlong / char*)
Input tuple.
Types of the elements of the input tuple as integer values.
tuple_type_elem ([3.1416,'pi',3], Types)
* Types = [H_TYPE_REAL, H_TYPE_STRING, H_TYPE_INT]
If the parameters are valid, the operator
tuple_type_elemtuple_type_elemTupleTypeElemtuple_type_elemTupleTypeElemTupleTypeElem returns the value 2 (H_MSG_TRUE).
tuple_typetuple_typeTupleTypetuple_typeTupleTypeTupleType,
tuple_is_mixedtuple_is_mixedTupleIsMixedtuple_is_mixedTupleIsMixedTupleIsMixed,
tuple_is_inttuple_is_intTupleIsInttuple_is_intTupleIsIntTupleIsInt,
tuple_is_realtuple_is_realTupleIsRealtuple_is_realTupleIsRealTupleIsReal,
tuple_is_stringtuple_is_stringTupleIsStringtuple_is_stringTupleIsStringTupleIsString,
tuple_is_mixedtuple_is_mixedTupleIsMixedtuple_is_mixedTupleIsMixedTupleIsMixed,
tuple_is_int_elemtuple_is_int_elemTupleIsIntElemtuple_is_int_elemTupleIsIntElemTupleIsIntElem,
tuple_is_real_elemtuple_is_real_elemTupleIsRealElemtuple_is_real_elemTupleIsRealElemTupleIsRealElem,
tuple_is_string_elemtuple_is_string_elemTupleIsStringElemtuple_is_string_elemTupleIsStringElemTupleIsStringElem
get_obj_classget_obj_classGetObjClassget_obj_classGetObjClassGetObjClass,
tuple_is_numbertuple_is_numberTupleIsNumbertuple_is_numberTupleIsNumberTupleIsNumber
Foundation