Signature (Visual Basic / VBA)
Public Sub AddFromHashTable( _
ByRef vhtAdd As HashTable _
, Optional ByVal vUpdateDuplicateKeys As Boolean = True _
)
Code Example
Assuming
Dim htTemp As HashTable
htTemp.Add "FunctionName", 23
Dim htOther As HashTable
htOther.Add "SubName", 24
for example
htTemp.AddFromHashTable htOther, True
leaves
htTemp.Count = 2
Parameters
| Parameter | Description |
|---|---|
| vhtAdd | The hash table whose Keys and Items are added to the current hash table. |
| vUpdateDuplicateKeys | True if duplicate Keys should be prohibited by updating the existing Key with the a new Item value. False if new hash table entries should be created even if that results in duplicate Keys . |
Notes & Version History
| Note | This method uses the AddOrUpdate method to combine the hash tables if vUpdateDuplicateKeys is True, and it uses the Add method to combine the hash tables if vUpdateDuplicateKeys is False. |
| v1.5 Addition | This method is new to version 1.5 of Entisoft Tools. |