Search Tools Links Login

HIve - Alternate for Collection and Dictionary


Visual Basic 6, or VB Classic

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.

Original Author: Omar Al Zabir

Assumptions

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

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 125 times

Categories

Visual Basic 6

Attachments

HIve - Alt277021062001.zip
Posted: 9/3/2020 3:45:00 PM
Size: 14,454 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.