winzip icon

HIve - Alternate for Collection and Dictionary

Email
Submitted on: 1/20/2015 7:19:00 AM
By: Omar Al Zabir (from psc cd)  
Level: Intermediate
User Rating: By 8 Users
Compatibility: VB 5.0, VB 6.0
Views: 1047
 
     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.
 

Windows API/Global Declarations:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
'**************************************
'Windows API/Global Declarations for :HIve - Alternate for Collection and Dictionary
'**************************************
little for GUID generation
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.