Signature (Visual Basic / VBA)
Public Function Remove( _
ByVal vKey As Variant _
) As Boolean
Code Example
Assuming
Dim htTemp As New HashTable
htTemp.Add "FunctionName", 23
htTemp.Add "FunctionName", 24
Dim bResult As Boolean
for example
bResult = htTemp.Remove("FunctionName")
leaves
bResult = True
htTemp.Count = 1
Parameters
| Parameter | Description |
|---|---|
| vKey | The string or numeric identifier of the hash table entry that is to be removed. |
Return Value
Method returns True if the Key was found and its Item was removed, and it returns False otherwise.
Notes & Version History
| Note | If there are multiple hash table definitions with the same Key , this method will remove the one that was mostly-recently-added. |