VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



HIve Alternate for Collection and Dictionary

by Omar Al Zabir (1 Submission)
Category: Data Structures
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (8 Votes)

Hive
Better, Faster and richer than Collection and Dictionary
It supports non string key. You can use Date or Number as a key. Very useful for storing numbered items or calendar information where the key is a date.
It has Auto key generation feature. Items can be added without any key for indexed based access. Auto Key is a GUID which is always unique.
Much faster than VB’s Collection even faster then Dictionary object.
It supports multiple items with same key. It also provides FindFirst, FindNext methods like ADO Recordset for duplicate key.
It supports both case sensitive and non case sensitive key matching support at run-time.
Its Clear method immediately releases memory very efficiently for both object and variant data type.
It supports “Exist” method to check whether a key exist or not.
It supports value modification which is not present in collection. Any value for a key can be reassigned at any time.
It supports Key method to get a key from index.
It can replace VB Collection’s code without any change.
It can record errors raised from invalid add, remove. It provides an error collection like ADO’s Error collection. Error raise can be turned off anytime.
It uses balanced binary tree (Red Black Binary Tree) for better performance than standard Binary Tree based data structures.

Assumes
Assuming you have used VB's Collection or Dictionary object and got frustrated.
Side Effects
There is no side effect.
API Declarations
little for GUID generation

Rate HIve Alternate for Collection and Dictionary

Download HIve Alternate for Collection and Dictionary

Download HIve Alternate for Collection and Dictionary (13 KB)

HIve Alternate for Collection and Dictionary Comments

No comments have been posted about HIve Alternate for Collection and Dictionary. Why not be the first to post a comment about HIve Alternate for Collection and Dictionary.

Post your comment

Subject:
Message:
0/1000 characters