UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Collections, Office 2003    
 
   
gary84
post 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?
Go to the top of the page
 
+
BananaRepublic
post 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 linked list dictionary than a hash map).

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.
Go to the top of the page
 
+
ace
post 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 the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 19th June 2013 - 06:13 AM