Ralle1976 icon

Dictionray

Ralle1976 | PRO | 11/06/19 06:16:44 PM UTC | 0 ⭐ | 525 👁️ | Never ⏰ | []
text |

1.39 KB

|

None

|

0 👍

/

0 👎

#Region Dictionray Helpers
; Adds a key and item pair to a Dictionary object.
Func _AddItem(ByRef $oDictionary, $v_key, $v_item)
	$oDictionary.ADD($v_key, $v_item) ;)
EndFunc   ;==>_AddItem
 ; Returns true if a specified key exists in the Dictionary object, false if it does not.
Func _ItemExists(ByRef $oDictionary, $v_key)
	Return $oDictionary.Exists($v_key)
EndFunc   ;==>_ItemExists
 ; Returns an item for a specified key in a Dictionary object
Func _Item(ByRef $oDictionary, $v_key)
	Return $oDictionary.Item($v_key)
EndFunc   ;==>_Item
 ; Sets an item for a specified key in a Dictionary object
Func _ChangeItem(ByRef $oDictionary, $v_key, $v_item)
	$oDictionary.Item($v_key) = $v_item
EndFunc   ;==>_ChangeItem
 ; Sets a key in a Dictionary object.
Func _ChangeKey(ByRef $oDictionary, $v_key, $v_newKey)
	$oDictionary.Key($v_key) = $v_newKey
EndFunc   ;==>_ChangeKey
 ; Removes a key, item pair from a Dictionary object.
Func _ItemRemove(ByRef $oDictionary, $v_key)
	$oDictionary.Remove($v_key)
EndFunc   ;==>_ItemRemove
 ; Returns the number of items in a collection or Dictionary object.
Func _ItemCount(Const ByRef $oDictionary)
	Return $oDictionary.Count
EndFunc   ;==>_ItemCount
 ; Returns an array containing all the items in a Dictionary object
Func _GetItems(Const ByRef $oDictionary)
	Return $oDictionary.Items
EndFunc   ;==>_GetItems
#EndRegion Dictionray Helpers

Comments