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
Post a Comment