Creating a dictionary-type structure in Access/Excel VBA? -


i want declare so:

dictionaryitem = {("key1", "value1"}, {"key2", "value2"} ... } 

but cannot syntax right. if not i'd make 2 arrays initial values (but not working either no matter how tried write it).

seems me you're describing scripting dictionary. see if satisfactory.

dim dct object set dct = createobject("scripting.dictionary") dct.add "key1", "value1" dct.add "key2", "value2" debug.print dct.count debug.print dct("key1") debug.print dct("key2") set dct = nothing 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -