Signature (Visual Basic / VBA)
Public Sub Add( _
ByVal vKey As Variant _
, ByVal vItem As Variant _
)
Code Example
Assuming
Dim htTemp As New HashTable
for example
htTemp.Add "FunctionName", 23
htTemp.Add "FunctionName", 24
leaves
htTemp.Count = 2
Parameters
| Parameter | Description |
|---|---|
| vKey | The String or numeric identifier associated with the item vItem. |
| vItem | Item that will inserted into the hash table along with its identifying Key . vItem can be any type of Variant value (vbString, numeric, vbDate, vbObject, vbArray, etc.). |
Notes & Version History
| v1.3 BugFix | This method has been fixed to support the storage of Object and DataObject type Items . |