Hash Table Class

Entisoft Tools 2.0 Object Library
Version 2.1 Build 208
<-- Previous || Index || Main || Topics || Next -->

Declarations Section, Compare Property, Contract Property, Count Property, Item Property, Items Property, Key Property, Keys Property, KeysAndItems Property, Name Property, Tag Property, Add Sub, AddFromHashTable Sub, AddOrUpdate Function, Exists Function, Lookup Function, Remove Function, RemoveAll Sub, Resize Sub, Update Function, Class_Initialize Sub, Class_Terminate Sub, AddLow Sub, AddOrUpdateLow Function

Declarations Section
Compare Property
Get the current value of the Compare property. The Compare property specifies the type of comparisons used to determine if string Keys match. Set the current value of the Compare property.
Contract Property
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. Set the current value of the Contract property.
Count Property
Return the number of definitions (Key and Item pairs) currently stored in the hash table.
Item Property
Return the Item at a specific numeric position within the hash table. Assign a value to the Item at a specific numeric position within the hash table when Item is NOT an Object. Assign a value to the Item at a specific numeric position within the hash table when Item IS an Object.
Items Property
Return all of the Items in a one-dimensional Variant array with elements between 1 and Count.
Key Property
Return the Key at a specific numeric position within the hash table.
Keys Property
Return all of the Keys in a one-dimensional Variant array with elements between 1 and Count.
Keys And Items Property
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.
Name Property
Return the Name of this HashTable. The Name may be any type of data. Assign a Name to this HashTable when the Name is NOT an Object. Assign a Name to this HashTable when the Name IS an Object.
Tag Property
Return the Tag of this HashTable. The Tag may be any type of data. Assign a Tag to this HashTable when the Tag is NOT an Object. Assign a Tag to this HashTable when the Tag IS an Object.
Add Sub
Add a new definition (Key and Item pair) into the hash table, even if the Key is not unique.
Add From Hash Table Sub
Add all the Keys & Items from another hash table into the current one. The hash table vhtAdd is not modified in any way.
Add Or Update Function
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.
Exists Function
Return True if the Key exists within the hash table.
Lookup Function
Lookup and return the Item associated with a Key.
Remove Function
Remove a defintion (Key and Item pair) from the hash table.
Remove All Sub
Remove all of the definitions from the hash table.
Resize Sub
Resize an existing hash table so that it has the specified number of header and data buckets.
Update Function
Update the Item of the hash table definition identified by Key.
Class _ Initialize Sub
Initialize the hash table automatically when instances of this class are created.
Class _ Terminate Sub
Terminate the hash table automatically when instances of this class are destroyed.
Add Low Sub
Add Or Update Low Function

This Windows-based ActiveX DLL provides many useful routines through its function-bearing and data structure classes. Consult the Help file for more information, or call us at 1-310-472-3736. For the latest news and files, visit our home page on the World Wide Web: http://www.entisoft.com

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