get_dict_tupleT_get_dict_tupleGetDictTupleGetDictTuple (Operator)

Name

get_dict_tupleT_get_dict_tupleGetDictTupleGetDictTuple — Zurückgeben der in einem Dictionary über einen Schüssel referenzierten Tupeldaten.

Signatur

get_dict_tuple( : : DictHandle, Key : Tuple)

Herror T_get_dict_tuple(const Htuple DictHandle, const Htuple Key, Htuple* Tuple)

void GetDictTuple(const HTuple& DictHandle, const HTuple& Key, HTuple* Tuple)

HTuple HDict::GetDictTuple(const HTuple& Key) const

HTuple HDict::GetDictTuple(const HString& Key) const

HTuple HDict::GetDictTuple(const char* Key) const

HTuple HDict::GetDictTuple(const wchar_t* Key) const   (Nur Windows)

static void HOperatorSet.GetDictTuple(HTuple dictHandle, HTuple key, out HTuple tuple)

HTuple HDict.GetDictTuple(HTuple key)

HTuple HDict.GetDictTuple(string key)

Beschreibung

get_dict_tupleget_dict_tupleGetDictTupleGetDictTupleGetDictTuple fragt aus dem Dictionary DictHandleDictHandleDictHandleDictHandledictHandle die mit einem Schlüssel KeyKeyKeyKeykey assoziierten Tupeldaten TupleTupleTupleTupletuple ab. Die Tupeldaten müssen zuvor mit Hilfe des Operators set_dict_tupleset_dict_tupleSetDictTupleSetDictTupleSetDictTuple in dem Dictionary abgespeichert worden sein.

Falls der spezifizierte Schlüssel KeyKeyKeyKeykey nicht in dem Dictionary hinterlegt ist oder der mit ihm verbundene Eintrag kein Datentupel sondern ein ikonisches Objekt ist, schlägt get_dict_tupleget_dict_tupleGetDictTupleGetDictTupleGetDictTuple fehl. Die gespeicherten Schlüssel und die Information über die von ihnen referenzierten Daten kann über den Operator get_dict_paramget_dict_paramGetDictParamGetDictParamGetDictParam abgefragt werden.

Ausführungsinformationen

Parameter

DictHandleDictHandleDictHandleDictHandledictHandle (input_control)  dict HDict, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle des Dictionaries.

Parameteranzahl: DictHandle == 1

KeyKeyKeyKeykey (input_control)  string HTupleHTupleHtuple (string / integer) (string / int / long) (HString / Hlong) (char* / Hlong)

Schlüssel.

Parameteranzahl: Key == 1

Restriktion: length(Key) > 0

TupleTupleTupleTupletuple (output_control)  tuple(-array) HTupleHTupleHtuple (string / integer / real) (string / int / long / double) (HString / Hlong / double) (char* / Hlong / double)

Vom Schlüssel referenzierte Tupeldaten.

Beispiel (HDevelop)

* ...
get_dict_param (Dict, 'key_exists', ['simple_string','foo','my_image'], \
                KeysPresence)
get_dict_param (Dict, 'key_data_type', ['simple_string','my_image'], \
                KeysType)
get_dict_tuple (Dict, 'simple_string', TupleString)

Ergebnis

Im Erfolgsfall gibt get_dict_tupleget_dict_tupleGetDictTupleGetDictTupleGetDictTuple den Wert 2 (H_MSG_TRUE) zurück. Andernfalls wird eine Fehlerbehandlung durchgeführt. Mögliche Fehler sind ungültige Parameter (Dictionary oder Schlüssel), Abwesenheit des Schlüssels in dem Dictionary oder wenn der Schüssel andere Datentypen als ein Datentupel referenziert.

Vorgänger

set_dict_tupleset_dict_tupleSetDictTupleSetDictTupleSetDictTuple

Alternativen

get_dict_objectget_dict_objectGetDictObjectGetDictObjectGetDictObject

Siehe auch

create_dictcreate_dictCreateDictCreateDictCreateDict, set_dict_tupleset_dict_tupleSetDictTupleSetDictTupleSetDictTuple, set_dict_objectset_dict_objectSetDictObjectSetDictObjectSetDictObject, get_dict_objectget_dict_objectGetDictObjectGetDictObjectGetDictObject, remove_dict_keyremove_dict_keyRemoveDictKeyRemoveDictKeyRemoveDictKey, get_dict_paramget_dict_paramGetDictParamGetDictParamGetDictParam

Modul

Foundation