<-- Previous || Up || Next -->

Remove Function
Hash Table Class

Public Function Remove( _
    ByVal vKey As Variant _
    ) As Boolean

Remove a defintion (Key and Item pair) from the hash table.

       Dim htTemp As New HashTable
       htTemp.Add "FunctionName", 23
       htTemp.Add "FunctionName", 24
       Dim bResult As Boolean
    for example
       bResult = htTemp.Remove("FunctionName")
       bResult = True
       htTemp.Count = 1
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.
See also:
    RemoveAll Method
    Lookup Method
    Add Method
    AddOrUpdate Method
Note: If there are multiple hash table definitions with the same Key, this method will remove the one that was mostly-recently-added.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.