tuple_is_mixedš
Short descriptionš
tuple_is_mixed ā Test whether a tuple is of type mixed.
Signatureš
tuple_is_mixed( tuple T, out number IsMixed )
Descriptionš
tuple_is_mixed tests the input tuple T.
If the type is mixed, the value 1 (true) is returned in
IsMixed, else 0 (false) is returned. If a tuple consists of
elements with equal data types only, IsMixed can nevertheless be 1
in case the internal representation is H_TYPE_MIXED; see
tuple_type for details.
If the type of the tuple is mixed and you need all elements of
the tuple T to be of one data type only, you can
explicitly convert the tuple to a better fitting
representation by using tuple_int, tuple_real or
tuple_string with Format=āsā. This improves processing speed for the
converted tuple which is especially useful if the tuple is used many times
afterwards.
Exception: Empty input tupleš
If the input tuple is empty, the operator returns 1.
HDevelop In-line Operationš
HDevelop provides an in-line operation for tuple_is_mixed,
which can be used in an expression in the following syntax:
IsMixed := is_mixed(T)
Execution informationš
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parametersš
T (input_control) tuple(-array) ā (string / real / integer / handle)
Input tuple.
IsMixed (output_control) number ā (integer)
Is the input tuple of type mixed?
Exampleš
(HDevelop)
tuple_is_mixed ([3.1416,'pi',3], IsMixedA)
* IsMixedA = true
tuple_is_mixed (['a','b','111'], IsMixedB)
* IsMixedB = false
tuple_is_mixed ([], IsMixedC)
* IsMixedC = true
Resultš
If the parameters are valid, the operator
tuple_is_mixed returns the value 2 (H_MSG_TRUE).
Combinations with other operatorsš
Moduleš
Foundation