Convert two lists (array or collection) into one Dictionary Object

Category:
Lists, Collections and Arrays
Type:
Snippets
Difficulty:
Intermediate

Author: Intelligent Solutions Inc.

Version Compatibility: Visual Basic 6

More information:
The MakeDictionary function takes two lists as parameters -- one key list and one value list -- and returns a Dictionary object. Both the key list and the value list can be either an array or collection.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: