i have a dictionary which contains user-defined class items. i need to change the value of these items. each time i change value, the item value in original dictionary will also be changed, and i lost my orignial data. how to solve it?
code like this:
dim olddict as new scripting.dictionary
dim newdict as scripting.dictionary
olddict.add key item
set newdict = olddict
....
then when change items in newdict, olddict changes too. even i add items one by one from olddict, olddict value still changes
thanks
code like this:
dim olddict as new scripting.dictionary
dim newdict as scripting.dictionary
olddict.add key item
set newdict = olddict
....
then when change items in newdict, olddict changes too. even i add items one by one from olddict, olddict value still changes
thanks