KlassenKlassenKlassenKlassen | | | | Operatoren

tuple_is_int_elemtuple_is_int_elemTupleIsIntElemtuple_is_int_elemTupleIsIntElemTupleIsIntElem (Operator)

Name

tuple_is_int_elemtuple_is_int_elemTupleIsIntElemtuple_is_int_elemTupleIsIntElemTupleIsIntElem — Testen, ob die Elemente eines Tupels vom Typ integer (Ganzzahl) sind.

Signatur

tuple_is_int_elem( : : T : IsInt)

Herror tuple_is_int_elem(const Hlong T, Hlong* IsInt)

Herror T_tuple_is_int_elem(const Htuple T, Htuple* IsInt)

Herror tuple_is_int_elem(const HTuple& T, Hlong* IsInt)

Herror tuple_is_int_elem(const HTuple& T, HTuple* IsInt)

void TupleIsIntElem(const HTuple& T, HTuple* IsInt)

HTuple HTuple::TupleIsIntElem() const

void HOperatorSetX.TupleIsIntElem(
[in] VARIANT T, [out] VARIANT* IsInt)

VARIANT HTupleX.TupleIsIntElem([in] VARIANT T)

static void HOperatorSet.TupleIsIntElem(HTuple t, out HTuple isInt)

HTuple HTuple.TupleIsIntElem()

Beschreibung

tuple_is_int_elemtuple_is_int_elemTupleIsIntElemtuple_is_int_elemTupleIsIntElemTupleIsIntElem testet die Elemente des Eingabetupels TTTTTt. Für alle Elemente vom Typ integer (Ganzzahl) wird 1 (true) zurückgegeben, ansonsten wird 0 (false) zurückgegeben.

Sonderfall: Leeres Eingabetupel

Falls das Eingabetupel leer ist, gibt der Operator ein leeres Tupel zurück.

HDevelop Inline-Operation

HDevelop unterstützt eine Inline-Operation für tuple_is_int_elemtuple_is_int_elemTupleIsIntElemtuple_is_int_elemTupleIsIntElemTupleIsIntElem, die innerhalb eines Ausdrucks in der folgenden Syntax verwendet werden kann:

IsInt := is_int_elem(T)

Achtung

tuple_is_int_elemtuple_is_int_elemTupleIsIntElemtuple_is_int_elemTupleIsIntElemTupleIsIntElem gibt true zurück, falls der interne Datentyp der Elemente des Tupels integer ist. Im Gegensatz zu tuple_is_numbertuple_is_numberTupleIsNumbertuple_is_numberTupleIsNumberTupleIsNumber wird nicht zurückgegeben, ob die Elemente eines Tupel als integer dargestellt werden könnten.

Parallelisierung

Parameter

TTTTTt (input_control)  number(-array) HTupleHTupleHTupleVARIANTHtuple (integer / real / string) (int / long / double / string) (Hlong / double / HString) (Hlong / double / char*) (Hlong / double / BSTR) (Hlong / double / char*)

Eingabetupel.

IsIntIsIntIsIntIsIntIsIntisInt (output_control)  number(-array) HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Sind die Elemente des Eingabetupels vom Typ integer (Ganzzahl)?

Beispiel (HDevelop)

tuple_is_int_elem ([3.1416,'pi',3,3.0], IsInt)
* IsInt = [false, false, true, false]

Ergebnis

Sind die Parameterwerte korrekt, dann liefert tuple_is_int_elemtuple_is_int_elemTupleIsIntElemtuple_is_int_elemTupleIsIntElemTupleIsIntElem den Wert 2 (H_MSG_TRUE).

Alternativen

tuple_typetuple_typeTupleTypetuple_typeTupleTypeTupleType, tuple_type_elemtuple_type_elemTupleTypeElemtuple_type_elemTupleTypeElemTupleTypeElem, tuple_is_inttuple_is_intTupleIsInttuple_is_intTupleIsIntTupleIsInt

Siehe auch

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_real_elemtuple_is_real_elemTupleIsRealElemtuple_is_real_elemTupleIsRealElemTupleIsRealElem, tuple_is_string_elemtuple_is_string_elemTupleIsStringElemtuple_is_string_elemTupleIsStringElemTupleIsStringElem, tuple_is_numbertuple_is_numberTupleIsNumbertuple_is_numberTupleIsNumberTupleIsNumber

Modul

Foundation


KlassenKlassenKlassenKlassen | | | | Operatoren