Class Module
24 Members
Hash Table Class
Entisoft Tools 2.0 Object Library · HashTable · 6 Functions · 10 Properties · 7 Subroutines
Declarations
Declarations
Hash Table Data Structure Copyright 1999 Entisoft
Section
Compare
Compare
Get the current value of the Compare property. The Compare property specifies the type of comparisons used to determine if string Keys match.
Property
Contract
Contract
Get the current value of the Contract property. The Contract property specifies whether the hash table should be automatically contracted when a fraction of its allocated space is used.
Property
Count
Count
Return the number of definitions ( Key and Item pairs) currently stored in the hash table.
Property
Item
Item
Return the Item at a specific numeric position within the hash table.
Property
Items
Items
Return all of the Items in a one-dimensional Variant array with elements between 1 and Count .
Property
Key
Key
Return the Key at a specific numeric position within the hash table.
Property
Keys
Keys
Return all of the Keys in a one-dimensional Variant array with elements between 1 and Count .
Property
KeysAndItems
Keys And Items
Return all of the Keys and Items in a two-dimensional Variant array. The Keys are returned in element 0 of the 1st dimension, and the Items are returned in element 1 of the 1st dimension. The 2nd dimension is dimensioned between 1 and Count .
Property
Name
Name
Return the Name of this HashTable . The Name may be any type of data.
Property
Tag
Tag
Return the Tag of this HashTable . The Tag may be any type of data.
Property
AddOrUpdate
Add Or Update
Add a new definition ( Key and Item pair) into the hash table or update an existing Key and Item pair. Inserting an Item with the same Key as another Item in the table causes the previous Item to be overwritten.
Function
AddOrUpdateLow
Add Or Update Low
View VB6 signature, parameters, and usage notes.
Function
Exists
Exists
Return True if the Key exists within the hash table.
Function
Lookup
Lookup
Lookup and return the Item associated with a Key .
Function
Remove
Remove
Remove a defintion ( Key and Item pair) from the hash table.
Function
Update
Update
Update the Item of the hash table definition identified by Key .
Function
Add
Add
Add a new definition ( Key and Item pair) into the hash table, even if the Key is not unique.
Sub
AddFromHashTable
Add From Hash Table
Add all the Keys & Items from another hash table into the current one. The hash table vhtAdd is not modified in any way.
Sub
AddLow
Add Low
View VB6 signature, parameters, and usage notes.
Sub
Class_Initialize
Class _ Initialize
Initialize the hash table automatically when instances of this class are created.
Sub
Class_Terminate
Class _ Terminate
Terminate the hash table automatically when instances of this class are destroyed.
Sub
RemoveAll
Remove All
Remove all of the definitions from the hash table.
Sub
Resize
Resize
Resize an existing hash table so that it has the specified number of header and data buckets.
Sub