Can anyone explain this to me:
Line in bold performs no assignments, key doesn't exist, no errors - but item with key "blah" and value Empty is created.
I'm also curious why Mircosoft treats trivial associative array (as seen in perl/php/javascript/whatever) as object... and restricts it's threading model to "Apartment".
Code:
Dim oDict: Set oDict = Server.createObject("Scripting.Dictionary")
Response.Write "Initial length: " & oDict.count & "<br>"
[b]Response.Write oDict.Item("blah")[/b]
Response.Write "Length after: " & oDict.count & "<br>"
Response.Write oDict.exists("blah") & " " & TypeName(oDict.Item("blah"))
Line in bold performs no assignments, key doesn't exist, no errors - but item with key "blah" and value Empty is created.
I'm also curious why Mircosoft treats trivial associative array (as seen in perl/php/javascript/whatever) as object... and restricts it's threading model to "Apartment".