The following sample does not work:
class clsX
public m1
public m2
end class
set objDict = CreateObject("Scripting.Dictionary")
set w = new clsX
w.m1 = "foo"
w.m2 = "bar"
objDict.Add "0", w
w.m1 = "FOO"
w.m2 = "BAR"
objDict.Item("0") = w 'Object doesn't support property or method
objDict.Item("0") = "fubar" 'Works OK
The line "objDict.Item("0") = w" produces the error:
Object doesn't support this property or method.
Remove that line and the subsequent line "objDict.Item("0") = "fubar""
works just fine.
The Item() method/property only permits string variants to be assigned
to it?