My Assistant
![]() ![]() |
|
|
Apr 8 2012, 08:33 PM
Post
#1
|
|
|
UtterAccess Veteran Posts: 313 |
Is there anything in VBA that works similar in any way to a Hash Map collection in java?
I assume an ordinary Array is the closest thing. Right? |
|
|
|
Apr 8 2012, 08:48 PM
Post
#2
|
|
|
Rent-an-Admin Posts: 8,929 From: Banana Republic |
Not really. VBA.Collection would be the closest equivalent and no hashing is needed. (it's probably more like a
I don't think VBA has anything that's a true hash map. Why would you need one? EDIT: Corrected the description. Dictionary is more accurate description as VBA.Collection has the capacity to refer to objects by key; linked lists doesn't, though a dictionary may be a linked list itself. |
|
|
|
Apr 9 2012, 06:59 AM
Post
#3
|
|
|
UtterAccess VIP Posts: 5,283 From: Upstate NY, USA |
If storing and retrieving key=value pairs is the main consideration there is also the scripting.dictionary object that
is similar to the vba.collection object with the addition of a few useful methods and capabilities not found in the vba.collection object. |
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 19th June 2013 - 06:13 AM |